intel/compiler: fine-grained control of dispatch widths
Reviewed-by: Matt Turner <mattst88@gmail.com> [v1] Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20535>
This commit is contained in:
committed by
Marge Bot
parent
bf3112805c
commit
bed18ab3e2
@@ -61,11 +61,13 @@ extern uint64_t intel_debug;
|
||||
#define DEBUG_CLIP (1ull << 13)
|
||||
#define DEBUG_STALL (1ull << 14)
|
||||
#define DEBUG_BLORP (1ull << 15)
|
||||
#define DEBUG_NO16 (1ull << 16)
|
||||
/* internal to intel_debug.c, replaced by INTEL_SIMD */
|
||||
/*#define DEBUG_NO16 (1ull << 16)*/
|
||||
#define DEBUG_NO_DUAL_OBJECT_GS (1ull << 17)
|
||||
#define DEBUG_OPTIMIZER (1ull << 18)
|
||||
#define DEBUG_ANNOTATION (1ull << 19)
|
||||
#define DEBUG_NO8 (1ull << 20)
|
||||
/* internal to intel_debug.c, replaced by INTEL_SIMD */
|
||||
/*#define DEBUG_NO8 (1ull << 20)*/
|
||||
#define DEBUG_NO_OACONFIG (1ull << 21)
|
||||
#define DEBUG_SPILL_FS (1ull << 22)
|
||||
#define DEBUG_SPILL_VEC4 (1ull << 23)
|
||||
@@ -84,7 +86,8 @@ extern uint64_t intel_debug;
|
||||
#define DEBUG_BT (1ull << 36)
|
||||
#define DEBUG_PIPE_CONTROL (1ull << 37)
|
||||
#define DEBUG_NO_FAST_CLEAR (1ull << 38)
|
||||
#define DEBUG_NO32 (1ull << 39)
|
||||
/* internal to intel_debug.c, replaced by INTEL_SIMD */
|
||||
/*#define DEBUG_NO32 (1ull << 39)*/
|
||||
#define DEBUG_RT (1ull << 40)
|
||||
#define DEBUG_TASK (1ull << 41)
|
||||
#define DEBUG_MESH (1ull << 42)
|
||||
@@ -97,9 +100,35 @@ extern uint64_t intel_debug;
|
||||
|
||||
/* These flags may affect program generation */
|
||||
#define DEBUG_DISK_CACHE_MASK \
|
||||
(DEBUG_NO16 | DEBUG_NO_DUAL_OBJECT_GS | DEBUG_NO8 | DEBUG_SPILL_FS | \
|
||||
DEBUG_SPILL_VEC4 | DEBUG_NO_COMPACTION | DEBUG_DO32 | DEBUG_SOFT64 | \
|
||||
DEBUG_NO32)
|
||||
(DEBUG_NO_DUAL_OBJECT_GS | DEBUG_SPILL_FS | \
|
||||
DEBUG_SPILL_VEC4 | DEBUG_NO_COMPACTION | DEBUG_DO32 | DEBUG_SOFT64)
|
||||
|
||||
extern uint64_t intel_simd;
|
||||
|
||||
#define INTEL_SIMD(type, size) (!!(intel_simd & (DEBUG_ ## type ## _SIMD ## size)))
|
||||
|
||||
/* VS, TCS, TES and GS stages are dispatched in one size */
|
||||
#define DEBUG_FS_SIMD8 (1ull << 0)
|
||||
#define DEBUG_FS_SIMD16 (1ull << 1)
|
||||
#define DEBUG_FS_SIMD32 (1ull << 2)
|
||||
|
||||
#define DEBUG_CS_SIMD8 (1ull << 3)
|
||||
#define DEBUG_CS_SIMD16 (1ull << 4)
|
||||
#define DEBUG_CS_SIMD32 (1ull << 5)
|
||||
|
||||
#define DEBUG_TS_SIMD8 (1ull << 6)
|
||||
#define DEBUG_TS_SIMD16 (1ull << 7)
|
||||
#define DEBUG_TS_SIMD32 (1ull << 8)
|
||||
|
||||
#define DEBUG_MS_SIMD8 (1ull << 9)
|
||||
#define DEBUG_MS_SIMD16 (1ull << 10)
|
||||
#define DEBUG_MS_SIMD32 (1ull << 11)
|
||||
|
||||
#define DEBUG_RT_SIMD8 (1ull << 12)
|
||||
#define DEBUG_RT_SIMD16 (1ull << 13)
|
||||
#define DEBUG_RT_SIMD32 (1ull << 14)
|
||||
|
||||
#define SIMD_DISK_CACHE_MASK ((1ull << 15) - 1)
|
||||
|
||||
#ifdef HAVE_ANDROID_PLATFORM
|
||||
#define LOG_TAG "INTEL-MESA"
|
||||
|
||||
Reference in New Issue
Block a user