summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-10-21 15:14:02 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:09 -0800
commitd98967d936f95d1406afe333701ecc50c13e4e60 (patch)
tree6c175966e56e50bfe1f04ad8c19580e4c79422a9 /src/gallium
parent3f70956a4e29e350e71cdaa45b9fe4fee00296ea (diff)
iris: fix UBOs with bindings that have an offset
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_state.c1
1 files changed, 1 insertions, 0 deletions
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?