summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-04-11 15:20:19 +1000
committerIan Romanick <ian.d.romanick@intel.com>2013-05-10 16:41:30 -0700
commit377213b3ee716ac9c607e8250692da4037264328 (patch)
tree1e472fa39f65f1d1ac5922f5b7f10e25a480ddfb
parentd1b4165fcf79a75fc0ce8a81445ce58666103770 (diff)
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 cb12bf7606116e473bf19aee84582b4cee7f895d)
-rw-r--r--src/mesa/state_tracker/st_atom_constbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_constbuf.c b/src/mesa/state_tracker/st_atom_constbuf.c
index 961fb28a9674..b92a24877aed 100644
--- a/src/mesa/state_tracker/st_atom_constbuf.c
+++ b/src/mesa/state_tracker/st_atom_constbuf.c
@@ -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);