iris: disallow RGB32 formats too
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Aug 2018 22:50:42 +0000 (15:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_formats.c

index 06c48a5583b163095870891dad4d9de5ef1401c5..8b1c9650d3574b7b773be96c88eed9c92db401c5 100644 (file)
@@ -479,12 +479,12 @@ iris_is_format_supported(struct pipe_screen *pscreen,
       if (!is_integer)
          supported &= isl_format_supports_filtering(devinfo, format);
 
-      /* Don't advertise 8 and 16-bit RGB formats.  This ensures that they
+      /* Don't advertise 3-component RGB formats.  This ensures that they
        * are renderable from an API perspective since the state tracker will
        * fall back to RGBA or RGBX, which are renderable.  We want to render
        * internally for copies and blits, even if the application doesn't.
        */
-      supported &= fmtl->bpb != 8 * 3 && fmtl->bpb != 8 * 6;
+      supported &= fmtl->bpb != 24 && fmtl->bpb != 48 && fmtl->bpb != 96;
    }
 
    if (usage & PIPE_BIND_VERTEX_BUFFER)