From bce7398646dc0c2332d14809a229334d86d9be12 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 14 Aug 2018 15:50:42 -0700 Subject: [PATCH] iris: disallow RGB32 formats too --- src/gallium/drivers/iris/iris_formats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c index 06c48a5583b..8b1c9650d35 100644 --- a/src/gallium/drivers/iris/iris_formats.c +++ b/src/gallium/drivers/iris/iris_formats.c @@ -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) -- 2.30.2