From cb12bf7606116e473bf19aee84582b4cee7f895d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 11 Apr 2013 15:20:19 +1000 Subject: [PATCH] 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 --- src/mesa/state_tracker/st_atom_constbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_atom_constbuf.c b/src/mesa/state_tracker/st_atom_constbuf.c index 56ba96fe362..ed69166f6b5 100644 --- a/src/mesa/state_tracker/st_atom_constbuf.c +++ b/src/mesa/state_tracker/st_atom_constbuf.c @@ -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); -- 2.30.2