amd: use 128B compression for scanout images when drm.minor <63

Fixes: 8328e575 ("ac/surface/gfx12: enable DCC 256B compressed blocks and reorder modifiers")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33702>
This commit is contained in:
Ganesh Belgur Ramachandra
2025-02-24 12:17:56 +05:30
committed by Marge Bot
parent 04e9431f4f
commit ba80a11b69
+2
View File
@@ -3315,6 +3315,8 @@ static bool gfx12_compute_surface(struct ac_addrlib *addrlib, const struct radeo
/* Don't change the DCC settings for imported buffers - they might differ. */
!(surf->flags & RADEON_SURF_IMPORTED)) {
surf->u.gfx9.color.dcc.max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_256B;
if ((info->drm_minor < 63) && (surf->flags & RADEON_SURF_SCANOUT))
surf->u.gfx9.color.dcc.max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_128B;
}
}