From 8ccf54ab098032da4652b314761c04f7724a7277 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 22 Oct 2014 08:58:57 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/intel_reg.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.30.2