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>
* 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;
}