radv: mark linear images for SDMA as potentially compressed on GFX12

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40121>
This commit is contained in:
Samuel Pitoiset 2026-02-27 10:45:31 +01:00 committed by Marge Bot
parent e6e305988c
commit 67c985d754

View file

@ -238,9 +238,8 @@ radv_sdma_get_surf(struct radv_cmd_buffer *cmd_buffer, const struct radv_image *
info.va = (va + surf_offset) | surf->tile_swizzle << 8;
if (pdev->info.gfx_level >= GFX12) {
info.is_compressed = binding->bo && binding->bo->gfx12_allow_dcc;
} else if (pdev->info.sdma_supports_compression && (dcc_compressed || htile_compressed)) {
if (pdev->info.sdma_supports_compression && (dcc_compressed || htile_compressed)) {
assert(pdev->info.gfx_level < GFX12);
info.is_compressed = true;
}
@ -251,6 +250,9 @@ radv_sdma_get_surf(struct radv_cmd_buffer *cmd_buffer, const struct radv_image *
}
}
if (pdev->info.gfx_level >= GFX12)
info.is_compressed = binding->bo && binding->bo->gfx12_allow_dcc;
return info;
}