From: Kenneth Graunke Date: Sun, 21 Oct 2018 22:14:02 +0000 (-0700) Subject: iris: fix UBOs with bindings that have an offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d98967d936f95d1406afe333701ecc50c13e4e60;p=mesa.git iris: fix UBOs with bindings that have an offset --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d24a6220cf7..be270073b3d 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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?