mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
iris: Don't lower image formats for write-only images
This commit is contained in:
parent
a06f0fe517
commit
d9aee25a46
1 changed files with 3 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue