iris: actually set image access
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 2 Oct 2018 17:09:26 +0000 (10:09 -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 51abda759eec5cec7b7f7bff0617f5c0b933bcd9..e8a529c7ccc9672668def51453f6bf8036a09b8a 100644 (file)
@@ -1537,6 +1537,8 @@ iris_set_shader_images(struct pipe_context *ctx,
          if (img->shader_access & PIPE_IMAGE_ACCESS_READ)
             isl_format = isl_lower_storage_image_format(devinfo, isl_format);
 
+         shs->image[start_slot + i].access = img->shader_access;
+
          if (res->base.target != PIPE_BUFFER) {
             struct isl_view view = {
                .format = isl_format,