From a22ed9990687def207a99dffcd43fa8d53a5322d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 8 Nov 2022 15:18:28 -0500 Subject: [PATCH] asahi: Restrict rendering to what we support Noticed with Kodi that tries to use rgb10a2. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 911506ce5ef..02c70ddb07c 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1343,6 +1343,8 @@ agx_is_format_supported(struct pipe_screen* pscreen, if ((usage & PIPE_BIND_RENDER_TARGET) && !ent.renderable) return false; + if ((usage & PIPE_BIND_RENDER_TARGET) && !util_format_is_unorm8(util_format_description(format))) + return false; } /* TODO: formats */