iris: fix UBOs with bindings that have an offset
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 21 Oct 2018 22:14:02 +0000 (15:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index d24a6220cf7ac65c90723016cc9012cbc1f2a5d9..be270073b3d7a5c0aca6e48099671cf915dcc339 100644 (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?