Module: Mesa
Branch: staging/23.3
Commit: d85271f340c77f5619b8d713445c6e0d2084e802
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d85271f340c77f5619b8d713445c6e0d2084e802

Author: Timur Kristóf <timur.kris...@gmail.com>
Date:   Thu Jan  4 10:10:11 2024 +0100

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.pitoi...@gmail.com>
Signed-off-by: Timur Kristóf <timur.kris...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27015>
(cherry picked from commit 436b89e8388810dc456c366b8ab0ee03f8fb1357)

---

 .pick_status.json           | 2 +-
 src/amd/vulkan/radv_image.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index d87d10210f2..998541abb8a 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -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
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 10edc11129c..efb1fa53eda 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -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;
       }

Reply via email to