summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-06-07 00:23:23 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit48dc8bd4b00854459a7c735b8b3fb1a32cdccf0e (patch)
tree35f39bc72970e24762b297124a291f75608f65b5
parenteed7f7253eb04e071cb637600dca81e83a7377f1 (diff)
iris: fix pull bufs that aren't the first user upload
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
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,