mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +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>
(cherry picked from commit cb12bf7606)
This commit is contained in:
parent
d1b4165fcf
commit
377213b3ee
1 changed files with 1 additions and 0 deletions
|
|
@ -195,6 +195,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;
|
||||
|
||||
st->pipe->set_constant_buffer(st->pipe, shader_type, 1 + i, &cb);
|
||||
pipe_resource_reference(&cb.buffer, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue