iris: Drop RGBX -> RGBA for storage image usages
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Feb 2019 05:36:05 +0000 (21:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 25 Feb 2019 08:57:50 +0000 (00:57 -0800)
GLSL doesn't expose RGB/RGBX image formats, so this isn't needed.

src/gallium/drivers/iris/iris_formats.c

index 969405154b3b99ae1d3363ccc52d158d3b88013d..8a53bc19f3f0bc2803c899866e02f561098e6618 100644 (file)
@@ -371,13 +371,10 @@ iris_format_for_usage(const struct gen_device_info *devinfo,
 
    enum isl_format format = iris_isl_format_for_pipe_format(pformat);
 
-   /* Convert RGBX into RGBA for rendering or typed image access. */
+   /* Convert RGBX into RGBA for rendering */
    if (isl_format_is_rgbx(format) &&
-       (((usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) &&
-         !isl_format_supports_rendering(devinfo, format)) ||
-        ((usage & ISL_SURF_USAGE_STORAGE_BIT) &&
-         !(isl_format_supports_typed_writes(devinfo, format) &&
-           isl_format_supports_typed_reads(devinfo, format))))) {
+       (usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) &&
+       !isl_format_supports_rendering(devinfo, format)) {
       format = isl_format_rgbx_to_rgba(format);
    }