i965/skl: Allocate 16 DWords for SURFACE_STATE on Skylake.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 24 Apr 2014 20:54:14 +0000 (13:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Nov 2014 23:32:51 +0000 (15:32 -0800)
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@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/gen8_surface_state.c

index 269d9aa1aad590d83211f9d0914bf9f51c4661b5..de0e9fe45d83f4a5ad64fbff11ae6b533b6f2f39 100644 (file)
@@ -84,7 +84,7 @@ horizontal_alignment(struct intel_mipmap_tree *mt)
 static uint32_t *
 allocate_surface_state(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);