Remove legacy vector extension detection
SSE4.1 was introduced 14 years ago as part of the Intel Penryn micro-
architecture, with AMD support following a couple years later. While
Chrome has a minimum requirement of SSE3, it suffices to distinguish
between CPUs that support SSE4.1 and ones that don't. Reactor itself
already no longer uses the other feature detection functions.
Bug: b/214591655
Change-Id: Ic4e0bbb050a14b3ad0e9462b71e86ef6a7cccdfa
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/62068
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Reactor/CPUID.cpp b/src/Reactor/CPUID.cpp
index 98e267e..dfd53ae 100644
--- a/src/Reactor/CPUID.cpp
+++ b/src/Reactor/CPUID.cpp
@@ -47,48 +47,6 @@
#endif
}
-bool CPUID::supportsMMX()
-{
- int registers[4];
- cpuid(registers, 1);
- return (registers[3] & 0x00800000) != 0;
-}
-
-bool CPUID::supportsCMOV()
-{
- int registers[4];
- cpuid(registers, 1);
- return (registers[3] & 0x00008000) != 0;
-}
-
-bool CPUID::supportsSSE()
-{
- int registers[4];
- cpuid(registers, 1);
- return (registers[3] & 0x02000000) != 0;
-}
-
-bool CPUID::supportsSSE2()
-{
- int registers[4];
- cpuid(registers, 1);
- return (registers[3] & 0x04000000) != 0;
-}
-
-bool CPUID::supportsSSE3()
-{
- int registers[4];
- cpuid(registers, 1);
- return (registers[2] & 0x00000001) != 0;
-}
-
-bool CPUID::supportsSSSE3()
-{
- int registers[4];
- cpuid(registers, 1);
- return (registers[2] & 0x00000200) != 0;
-}
-
bool CPUID::supportsSSE4_1()
{
int registers[4];
diff --git a/src/Reactor/CPUID.hpp b/src/Reactor/CPUID.hpp
index 3f368c4..8a5e342 100644
--- a/src/Reactor/CPUID.hpp
+++ b/src/Reactor/CPUID.hpp
@@ -28,13 +28,6 @@
class CPUID
{
public:
- static bool supportsMMX();
- static bool supportsCMOV();
- static bool supportsMMX2(); // MMX instructions added by SSE: pshufw, pmulhuw, pmovmskb, pavgw/b, pextrw, pinsrw, pmaxsw/ub, etc.
- static bool supportsSSE();
- static bool supportsSSE2();
- static bool supportsSSE3();
- static bool supportsSSSE3();
static bool supportsSSE4_1();
};