iris: fix pull bufs that aren't the first user upload

This commit is contained in:
Kenneth Graunke 2018-06-07 00:23:23 -07:00
parent eed7f7253e
commit 48dc8bd4b0

View file

@ -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,