diff options
author | Nanley Chery <[email protected]> | 2017-03-07 11:17:05 -0800 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-03-29 19:13:17 +0300 |
commit | e504ecb6c6963a9692b25b048b6b185f821ef939 (patch) | |
tree | fd32c663f0caca86d5f0f02049109a2bfdd702a0 /src/mesa/drivers | |
parent | d80b96f98010aec59b6f4ce9949a3909d3023c13 (diff) |
intel: Correct the BDW surface state size
The PRMs state that this packet is 16 DWORDS long. Ensure that the last
three DWORDS are zeroed as required by the hardware when allocating a
null surface state.
Cc: <[email protected]>
Signed-off-by: Nanley Chery <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
(cherry picked from commit 7c50f9903f58ef04ff393505a383d06f499f1fdc)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_surface_state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index 08f83f3e064..4893d6d2089 100644 --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c @@ -46,10 +46,9 @@ static uint32_t * gen8_allocate_surface_state(struct brw_context *brw, uint32_t *out_offset, int index) { - int dwords = brw->gen >= 9 ? 16 : 13; uint32_t *surf = __brw_state_batch(brw, AUB_TRACE_SURFACE_STATE, - dwords * 4, 64, index, out_offset); - memset(surf, 0, dwords * 4); + 64, 64, index, out_offset); + memset(surf, 0, 64); return surf; } |