From d98967d936f95d1406afe333701ecc50c13e4e60 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 21 Oct 2018 15:14:02 -0700 Subject: [PATCH] iris: fix UBOs with bindings that have an offset --- src/gallium/drivers/iris/iris_state.c | 1 + 1 file changed, 1 insertion(+) 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? -- 2.30.2