iris: fix UBOs with bindings that have an offset

This commit is contained in:
Kenneth Graunke 2018-10-21 15:14:02 -07:00
parent 3f70956a4e
commit d98967d936

View file

@ -2074,6 +2074,7 @@ iris_set_constant_buffer(struct pipe_context *ctx,
&cbuf->data.res);
} else {
pipe_resource_reference(&cbuf->data.res, input->buffer);
cbuf->data.offset = input->buffer_offset;
}
// XXX: these are not retained forever, use a separate uploader?