summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/common
diff options
context:
space:
mode:
authorAlok Hota <[email protected]>2018-06-19 17:22:32 -0500
committerAlok Hota <[email protected]>2019-04-26 13:00:38 -0500
commit0e49963212fb85e4fb83c3d4003907e232f151bd (patch)
treee07bcf3c8853d01730be680e88d8180d2ca504dc /src/gallium/drivers/swr/rasterizer/common
parent0bf1df2bb6e2311c532734c4cb6a096389e511bf (diff)
swr/rast: AVX512 support compiled in by default
- Emulation of AVX512 built into SIMDLIB - Remove associated macros - Remove knobs controlling AVX512 and let emulation handle it - Refactor variable names for SIMD16 Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h2
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/simd16intrin.h4
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/simdintrin.h2
3 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index b00beeb36dd..e812da39851 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -265,9 +265,7 @@ typedef MEGABYTE GIGABYTE[1024];
#define OSALIGNLINE(RWORD) OSALIGN(RWORD, 64)
#define OSALIGNSIMD(RWORD) OSALIGN(RWORD, KNOB_SIMD_BYTES)
-#if ENABLE_AVX512_SIMD16
#define OSALIGNSIMD16(RWORD) OSALIGN(RWORD, KNOB_SIMD16_BYTES)
-#endif
#include "common/swr_assert.h"
diff --git a/src/gallium/drivers/swr/rasterizer/common/simd16intrin.h b/src/gallium/drivers/swr/rasterizer/common/simd16intrin.h
index b08fb2eaaea..5964edff4d3 100644
--- a/src/gallium/drivers/swr/rasterizer/common/simd16intrin.h
+++ b/src/gallium/drivers/swr/rasterizer/common/simd16intrin.h
@@ -24,8 +24,6 @@
#ifndef __SWR_SIMD16INTRIN_H__
#define __SWR_SIMD16INTRIN_H__
-#if ENABLE_AVX512_SIMD16
-
#if KNOB_SIMD16_WIDTH == 16
typedef SIMD512 SIMD16;
#else
@@ -167,6 +165,4 @@ typedef SIMD512 SIMD16;
#define _simd16_mask2int(mask) int(mask)
#define _simd16_vmask_ps SIMD16::vmask_ps
-#endif // ENABLE_AVX512_SIMD16
-
#endif //__SWR_SIMD16INTRIN_H_
diff --git a/src/gallium/drivers/swr/rasterizer/common/simdintrin.h b/src/gallium/drivers/swr/rasterizer/common/simdintrin.h
index 8ffda3f8458..5eae34ef4e2 100644
--- a/src/gallium/drivers/swr/rasterizer/common/simdintrin.h
+++ b/src/gallium/drivers/swr/rasterizer/common/simdintrin.h
@@ -341,8 +341,6 @@ static SIMDINLINE simdscalar _simd_abs_ps(simdscalar const& a)
return _simd_castsi_ps(_simd_and_si(ai, _simd_set1_epi32(0x7fffffff)));
}
-#if ENABLE_AVX512_SIMD16
#include "simd16intrin.h"
-#endif // ENABLE_AVX512_SIMD16
#endif //__SWR_SIMDINTRIN_H__