mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
iris: Fix bug in bound vertex buffer tracking
res might be NULL, at which point this is an unbind.
This commit is contained in:
parent
4bfd12bbf7
commit
732c3a90a4
1 changed files with 3 additions and 3 deletions
|
|
@ -2462,13 +2462,13 @@ iris_set_vertex_buffers(struct pipe_context *ctx,
|
|||
|
||||
assert(!buffer->is_user_buffer);
|
||||
|
||||
ice->state.bound_vertex_buffers |= 1ull << (start_slot + i);
|
||||
|
||||
pipe_resource_reference(&state->resource, buffer->buffer.resource);
|
||||
struct iris_resource *res = (void *) state->resource;
|
||||
|
||||
if (res)
|
||||
if (res) {
|
||||
ice->state.bound_vertex_buffers |= 1ull << (start_slot + i);
|
||||
res->bind_history |= PIPE_BIND_VERTEX_BUFFER;
|
||||
}
|
||||
|
||||
iris_pack_state(GENX(VERTEX_BUFFER_STATE), state->state, vb) {
|
||||
vb.VertexBufferIndex = start_slot + i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue