Mesa (master): i965: Increase the size of brw_stage_state::surf_offset.

Kenneth Graunke kwg at kemper.freedesktop.org
Fri Sep 13 21:27:55 UTC 2013


Module: Mesa
Branch: master
Commit: e6e5f888480c2ca87e6bcca8ee0cc5d3925ddd4a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6e5f888480c2ca87e6bcca8ee0cc5d3925ddd4a

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Sep  1 17:18:22 2013 -0700

i965: Increase the size of brw_stage_state::surf_offset.

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 at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_context.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 6c04074..6be66f3 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -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;




More information about the mesa-commit mailing list