Module: Mesa
Branch: main
Commit: bed0542b2f6ae371596895c4487c33c345f85897
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bed0542b2f6ae371596895c4487c33c345f85897

Author: Sagar Ghuge <[email protected]>
Date:   Wed Oct 11 13:59:21 2023 -0700

anv: Enable transfer queue only on ACM+ platforms

On older platforms, we have the blitter engine, but it lacks compression
handling and other features we need, unfortunately, so enable the
transfer queue only on ACM+ platforms.

Signed-off-by: Sagar Ghuge <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25667>

---

 src/intel/vulkan/anv_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 93092047f62..6713e778f86 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1152,7 +1152,8 @@ anv_physical_device_init_queue_families(struct 
anv_physical_device *pdevice)
          c_count < 1 ? INTEL_ENGINE_CLASS_RENDER : INTEL_ENGINE_CLASS_COMPUTE;
 
       int blit_count = 0;
-      if (debug_get_bool_option("INTEL_COPY_CLASS", false)) {
+      if (debug_get_bool_option("INTEL_COPY_CLASS", false) &&
+          pdevice->info.verx10 >= 125) {
          blit_count = intel_engines_count(pdevice->engine_info,
                                           INTEL_ENGINE_CLASS_COPY);
       }

Reply via email to