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:

committed by
Marge Bot

parent
37617ab09e
commit
a22ed99906
@@ -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 */
|
||||
|
Reference in New Issue
Block a user