projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ad8a5
)
i965: Add #defines for Broadwell HiZ workarounds in CACHE_MODE_1.
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 22 Oct 2014 15:58:57 +0000
(08:58 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Tue, 4 Nov 2014 19:35:11 +0000
(11:35 -0800)
This patch adds macros needed for the HiZ PMA stall optimization.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_reg.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/intel_reg.h
b/src/mesa/drivers/dri/i965/intel_reg.h
index 45b82adc48005f4a1dedd41f675d1ed52b5078fc..5ac0180dc5cfeffc2c4d2c3fb9c0a3f2c2479037 100644
(file)
--- 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)