diff options
author | Kenneth Graunke <[email protected]> | 2014-10-22 08:58:57 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-11-04 11:35:11 -0800 |
commit | 8ccf54ab098032da4652b314761c04f7724a7277 (patch) | |
tree | a18ee17ebde3b3ce5d10201f3ee2a266a5656e4d /src/mesa/drivers/dri | |
parent | b5ad8a5d72654f5d99891024407b5a68406223e5 (diff) |
i965: Add #defines for Broadwell HiZ workarounds in CACHE_MODE_1.
This patch adds macros needed for the HiZ PMA stall optimization.
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_reg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_reg.h b/src/mesa/drivers/dri/i965/intel_reg.h index 45b82adc480..5ac0180dc5c 100644 --- a/src/mesa/drivers/dri/i965/intel_reg.h +++ b/src/mesa/drivers/dri/i965/intel_reg.h @@ -138,3 +138,9 @@ #define GEN7_3DPRIM_INSTANCE_COUNT 0x2438 #define GEN7_3DPRIM_START_INSTANCE 0x243C #define GEN7_3DPRIM_BASE_VERTEX 0x2440 + +#define GEN7_CACHE_MODE_1 0x7004 +# define GEN8_HIZ_NP_PMA_FIX_ENABLE (1 << 11) +# define GEN8_HIZ_NP_EARLY_Z_FAILS_DISABLE (1 << 13) +# define GEN8_HIZ_PMA_MASK_BITS \ + ((GEN8_HIZ_NP_PMA_FIX_ENABLE | GEN8_HIZ_NP_EARLY_Z_FAILS_DISABLE) << 16) |