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

Author: José Roberto de Souza <jose.so...@intel.com>
Date:   Wed Jan  3 07:54:45 2024 -0800

anv: Increase ANV_MAX_QUEUE_FAMILIES

If ANV_VIDEO_DECODE, ANV_VIDEO_DECODE and INTEL_COPY_CLASS are enabled
it is possible to have 5 different queues, so here increasing
ANV_MAX_QUEUE_FAMILIES.

Fixes: 17b8b2cffdb0 ("anv: Add support for a transfer queue on Alchemist")
Signed-off-by: José Roberto de Souza <jose.so...@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26882>

---

 src/intel/vulkan/anv_device.c  | 2 +-
 src/intel/vulkan/anv_private.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index e6104259ff2..29c2a57d7f8 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -2089,7 +2089,7 @@ anv_physical_device_init_queue_families(struct 
anv_physical_device *pdevice)
       /* Increase count below when other families are added as a reminder to
        * increase the ANV_MAX_QUEUE_FAMILIES value.
        */
-      STATIC_ASSERT(ANV_MAX_QUEUE_FAMILIES >= 4);
+      STATIC_ASSERT(ANV_MAX_QUEUE_FAMILIES >= 5);
    } else {
       /* Default to a single render queue */
       pdevice->queue.families[family_count++] = (struct anv_queue_family) {
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index eb6232da06d..fcb9b5b6024 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -906,7 +906,7 @@ struct anv_queue_family {
    enum intel_engine_class engine_class;
 };
 
-#define ANV_MAX_QUEUE_FAMILIES 4
+#define ANV_MAX_QUEUE_FAMILIES 5
 
 struct anv_memory_type {
    /* Standard bits passed on to the client */

Reply via email to