mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/mesa: fix UBO offsets.
Reported and tested by degasus on #radeon. Note: This is a candidate for the 9.1 branch Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
3998f8c6b5
commit
cb12bf7606
1 changed files with 1 additions and 0 deletions
|
|
@ -197,6 +197,7 @@ static void st_bind_ubos(struct st_context *st,
|
|||
pipe_resource_reference(&cb.buffer, st_obj->buffer);
|
||||
|
||||
cb.buffer_size = st_obj->buffer->width0 - binding->Offset;
|
||||
cb.buffer_offset = binding->Offset;
|
||||
|
||||
cso_set_constant_buffer(st->cso_context, shader_type, 1 + i, &cb);
|
||||
pipe_resource_reference(&cb.buffer, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue