radv: Correctly select SDMA support for PRIME blit.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10317
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27015>
(cherry picked from commit 436b89e838)
This commit is contained in:
Timur Kristóf 2024-01-04 10:10:11 +01:00 committed by Eric Engestrom
parent 5361f9c7bd
commit d85271f340
2 changed files with 2 additions and 2 deletions

View file

@ -634,7 +634,7 @@
"description": "radv: Correctly select SDMA support for PRIME blit.",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -530,7 +530,7 @@ radv_patch_image_from_extra_info(struct radv_device *device, struct radv_image *
image_info->surf_index = NULL;
}
if (create_info->prime_blit_src && device->physical_device->rad_info.gfx_level == GFX9) {
if (create_info->prime_blit_src && !device->physical_device->rad_info.sdma_supports_compression) {
/* Older SDMA hw can't handle DCC */
image->planes[plane].surface.flags |= RADEON_SURF_DISABLE_DCC;
}