swr/rast: Enable AVX-512 targets in the jitter
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 31 Oct 2017 21:46:59 +0000 (16:46 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 20 Nov 2017 19:50:45 +0000 (13:50 -0600)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/knobs.h
src/gallium/drivers/swr/rasterizer/jitter/JitManager.h

index fe0a044ae8f75a051d616fe78cb9a03a43119da6..e00e2da650ff5e2693b0c33b738e19a278eec23c 100644 (file)
 #define KNOB_SIMD_WIDTH 8
 #define KNOB_SIMD_BYTES 32
 #elif (KNOB_ARCH == KNOB_ARCH_AVX512)
-#if 0
-// not ready to enable this globally, enabled on the side (below)
 #define KNOB_ARCH_ISA AVX512F
 #define KNOB_ARCH_STR "AVX512"
-#define KNOB_SIMD_WIDTH 16
-#define KNOB_SIMD_BYTES 64
-#else
-#define KNOB_ARCH_ISA AVX2
-#define KNOB_ARCH_STR "AVX2"
 #define KNOB_SIMD_WIDTH 8
 #define KNOB_SIMD_BYTES 32
-#endif
 #else
 #error "Unknown architecture"
 #endif
index 46ffe276a083cca7375e547ce3d351ddfcee9bfb..c30a807222d8b8e6b9badab06b8a7988069e09fa 100644 (file)
@@ -102,14 +102,12 @@ public:
             bForceAVX2 = true;
             bForceAVX512 = false;
         }
-        #if 0
         else if(isaRequest == "avx512")
         {
             bForceAVX = false;
             bForceAVX2 = false;
             bForceAVX512 = true;
         }
-        #endif
     };
 
     bool AVX2(void) { return bForceAVX ? 0 : InstructionSet::AVX2(); }