mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
i965: Set dirty state for brw_draw_upload.c when num_instances changes.
Otherwise, if we had a set of prims passed in with a num_instances varying between them, we wouldn't upload enough (or too much!) from user vertex arrays. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
13170321f6
commit
29a6307e12
1 changed files with 4 additions and 1 deletions
|
|
@ -474,7 +474,10 @@ static bool brw_try_draw_prims( struct gl_context *ctx,
|
|||
intel_batchbuffer_require_space(intel, estimated_max_prim_size, false);
|
||||
intel_batchbuffer_save_state(intel);
|
||||
|
||||
brw->num_instances = prim->num_instances;
|
||||
if (brw->num_instances != prim->num_instances) {
|
||||
brw->num_instances = prim->num_instances;
|
||||
brw->state.dirty.brw |= BRW_NEW_VERTICES;
|
||||
}
|
||||
if (intel->gen < 6)
|
||||
brw_set_prim(brw, &prim[i]);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue