[Mesa-dev] [PATCH 7/9] i965: Be sure to reset brw->vb.buffers[] when trying to redo vertex setup.
Eric Anholt
eric at anholt.net
Tue Oct 8 14:00:34 PDT 2013
The brw_prepare_vertices that sets up buffers[] depends on these
parameters, so don't let brw_prepare_vertices() skip it.
---
src/mesa/drivers/dri/i965/brw_draw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 549f9d0a..b6cfd53 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -398,10 +398,12 @@ static bool brw_try_draw_prims( struct gl_context *ctx,
if (brw->num_instances != prims[i].num_instances) {
brw->num_instances = prims[i].num_instances;
brw->state.dirty.brw |= BRW_NEW_VERTICES;
+ brw_merge_inputs(brw, arrays);
}
if (brw->basevertex != prims[i].basevertex) {
brw->basevertex = prims[i].basevertex;
brw->state.dirty.brw |= BRW_NEW_VERTICES;
+ brw_merge_inputs(brw, arrays);
}
if (brw->gen < 6)
brw_set_prim(brw, &prims[i]);
--
1.8.4.rc3
More information about the mesa-dev
mailing list