i965 gen6: Resend binding table pointer after updating SOL bindings.
authorPaul Berry <stereotype441@gmail.com>
Thu, 22 Dec 2011 19:57:41 +0000 (11:57 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Dec 2011 23:16:51 +0000 (15:16 -0800)
After creating new binding table entries for transform feedback, we
need to set the dirty flag BRW_NEW_SURFACES, so that a new binding
table pointer will be sent to the hardware.  Otherwise the new binding
table entries will not take effect.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_sol.c

index 32f56d30311a70a890d221467c27feb52938a1ec..437b3ae3fd356d9405952645600605ae9a4ec4d9 100644 (file)
@@ -61,6 +61,8 @@ gen6_update_sol_surfaces(struct brw_context *brw)
          brw->bind.surf_offset[surf_index] = 0;
       }
    }
+
+   brw->state.dirty.brw |= BRW_NEW_SURFACES;
 }
 
 const struct brw_tracked_state gen6_sol_surface = {