mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 19:50:37 +02:00
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:
parent
e6e305988c
commit
67c985d754
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue