mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
asahi: Fix compressed ZS support
Depth/stencil formats are "not renderable" but do support compression. I swear I already fixed this at some point and the commit must've fallen through the cracks... Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22353>
This commit is contained in:
parent
2296f69629
commit
9db36376a6
1 changed files with 2 additions and 1 deletions
|
|
@ -405,7 +405,8 @@ agx_compression_allowed(const struct agx_resource *pres)
|
|||
* renderable formats. As framebuffer compression, other formats don't make a
|
||||
* ton of sense to compress anyway.
|
||||
*/
|
||||
if (!agx_pixel_format[pres->base.format].renderable) {
|
||||
if (!agx_pixel_format[pres->base.format].renderable &&
|
||||
!util_format_is_depth_or_stencil(pres->base.format)) {
|
||||
rsrc_debug(pres, "No compression: format not renderable\n");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue