[Mesa-dev] [PATCH 02/13] i965: Remove BRW_NEW_NR_VS_SURFACES dirty bit from brw_vs_surfaces.

Kenneth Graunke kenneth at whitecape.org
Tue Nov 8 14:32:01 PST 2011


brw_vs_surfaces _produces_ the BRW_NEW_NR_VS_SURFACES dirty bit, so it
makes no sense for it to subscribe to it.

Fixes an assertion failure in many piglit tests when INTEL_DEBUG is set:
  brw_state_upload.c:484: void brw_upload_state(struct brw_context *):
  Assertion `!check_state(&examined, &generated)' failed.

One such piglit test is vs-uniform-array-mat2-col-rd.shader_test.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_vs_surface_state.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c
index 8c63db8..5f94bda 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c
@@ -182,7 +182,6 @@ const struct brw_tracked_state brw_vs_surfaces = {
    .dirty = {
       .mesa = 0,
       .brw = (BRW_NEW_VS_CONSTBUF |
-	      BRW_NEW_NR_VS_SURFACES |
 	      BRW_NEW_BATCH),
       .cache = 0
    },
-- 
1.7.7.1



More information about the mesa-dev mailing list