iris: fix indirect drawid
iteration needs to be added to the offset now
Fixes: dae3113c3d
("gallium: split drawid out of pipe_draw_info and as a separate draw_vbo param")
Tested-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10555>
This commit is contained in:
parent
94c1e65de9
commit
457a030b87
|
@ -199,7 +199,7 @@ iris_indirect_draw_vbo(struct iris_context *ice,
|
||||||
for (int i = 0; i < indirect.draw_count; i++) {
|
for (int i = 0; i < indirect.draw_count; i++) {
|
||||||
iris_batch_maybe_flush(batch, 1500);
|
iris_batch_maybe_flush(batch, 1500);
|
||||||
|
|
||||||
iris_update_draw_parameters(ice, &info, drawid_offset, &indirect, draw);
|
iris_update_draw_parameters(ice, &info, drawid_offset + i, &indirect, draw);
|
||||||
|
|
||||||
batch->screen->vtbl.upload_render_state(ice, batch, &info, drawid_offset + i, &indirect, draw);
|
batch->screen->vtbl.upload_render_state(ice, batch, &info, drawid_offset + i, &indirect, draw);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue