mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
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:
parent
37617ab09e
commit
a22ed99906
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue