[Mesa-dev] [PATCH 08/16] i965/skl: Allocate 16 DWords for SURFACE_STATE on Skylake.
Kristian Høgsberg
krh at bitplanet.net
Wed Sep 24 12:28:13 PDT 2014
From: Kenneth Graunke <kenneth at whitecape.org>
Otherwise they overlap and horrible things happen. All the new DWords
are for fast color clear values, which we don't do yet.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
---
src/mesa/drivers/dri/i965/gen8_surface_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c
index f399029..1742012 100644
--- a/src/mesa/drivers/dri/i965/gen8_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c
@@ -84,7 +84,7 @@ horizontal_alignment(struct intel_mipmap_tree *mt)
static uint32_t *
allocate_surface_state(const struct brw_context *brw, uint32_t *out_offset)
{
- int dwords = 13;
+ int dwords = brw->gen >= 9 ? 16 : 13;
uint32_t *surf = brw_state_batch(brw, AUB_TRACE_SURFACE_STATE,
dwords * 4, 64, out_offset);
memset(surf, 0, dwords * 4);
--
2.1.0
More information about the mesa-dev
mailing list