diff options
author | Jason Ekstrand <[email protected]> | 2018-10-01 22:18:00 -0500 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:09 -0800 |
commit | d9aee25a466ba73a78a47e32f89777179e519931 (patch) | |
tree | 61a5306e0fc9d1ac282395ba0760ce9313611251 /src | |
parent | a06f0fe517e1133458786e249649c2c9375765a9 (diff) |
iris: Don't lower image formats for write-only images
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 3c33d0cc97f..51abda759ee 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1533,7 +1533,9 @@ iris_set_shader_images(struct pipe_context *ctx, isl_surf_usage_flags_t usage = ISL_SURF_USAGE_STORAGE_BIT; enum isl_format isl_format = iris_format_for_usage(devinfo, img->format, usage).fmt; - isl_format = isl_lower_storage_image_format(devinfo, isl_format); + + if (img->shader_access & PIPE_IMAGE_ACCESS_READ) + isl_format = isl_lower_storage_image_format(devinfo, isl_format); if (res->base.target != PIPE_BUFFER) { struct isl_view view = { |