mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
vc4: Don't throw out the index offset in the shadow index buffer path.
When we upload shadow indices at draw time, we need the source offset. Fixes the piglit draw-elements test.
This commit is contained in:
parent
0ae5e002e0
commit
d78eb57528
1 changed files with 1 additions and 2 deletions
|
|
@ -300,12 +300,11 @@ vc4_set_index_buffer(struct pipe_context *pctx,
|
|||
pipe_resource_reference(&vc4->indexbuf.buffer, NULL);
|
||||
vc4->indexbuf.buffer = pshadow;
|
||||
vc4->indexbuf.index_size = 2;
|
||||
vc4->indexbuf.offset = 0;
|
||||
} else {
|
||||
pipe_resource_reference(&vc4->indexbuf.buffer, ib->buffer);
|
||||
vc4->indexbuf.index_size = ib->index_size;
|
||||
vc4->indexbuf.offset = ib->offset;
|
||||
}
|
||||
vc4->indexbuf.offset = ib->offset;
|
||||
} else {
|
||||
pipe_resource_reference(&vc4->indexbuf.buffer, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue