From 48dc8bd4b00854459a7c735b8b3fb1a32cdccf0e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 7 Jun 2018 00:23:23 -0700 Subject: iris: fix pull bufs that aren't the first user upload --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/iris') diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d47c90f32fb..dcf5c62f9a8 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1373,7 +1373,7 @@ iris_set_constant_buffer(struct pipe_context *ctx, cbuf->surface_state_offset += iris_bo_offset_from_base_address(surf_bo); isl_buffer_fill_state(&screen->isl_dev, map, - .address = res->bo->gtt_offset, + .address = res->bo->gtt_offset + cbuf->offset, .size_B = input->buffer_size, .format = ISL_FORMAT_R32G32B32A32_FLOAT, .stride_B = 1, -- cgit v1.2.3