i965: Increase the size of brw_stage_state::surf_offset.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Sep 2013 00:18:22 +0000 (17:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Sep 2013 21:26:50 +0000 (14:26 -0700)
Since BRW_MAX_WM_SURFACES is greater than BRW_MAX_VEC4_SURFACES, the
existing array isn't large enough to be used by the WM.  Increasing it
will make it possible to share them.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h

index 6c04074703bb50c20c0213da265cf2f4520a74b9..6be66f35891484c17f2337b1afcccf4db2c61e2b 100644 (file)
@@ -855,7 +855,7 @@ struct brw_stage_state
 
    /* Binding table: pointers to SURFACE_STATE entries. */
    uint32_t bind_bo_offset;
-   uint32_t surf_offset[BRW_MAX_VEC4_SURFACES];
+   uint32_t surf_offset[BRW_MAX_WM_SURFACES];
 
    /** SAMPLER_STATE count and table offset */
    uint32_t sampler_count;