asahi: Restrict rendering to what we support

Noticed with Kodi that tries to use rgb10a2.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19811>
This commit is contained in:
Alyssa Rosenzweig
2022-11-08 15:18:28 -05:00
committed by Marge Bot
parent 37617ab09e
commit a22ed99906

View File

@@ -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 */