Module: Mesa Branch: main Commit: 428a179865a11b39d5a5f7fef89ce2e23d871ded URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=428a179865a11b39d5a5f7fef89ce2e23d871ded
Author: José Roberto de Souza <jose.so...@intel.com> Date: Wed Jan 3 12:16:37 2024 -0800 anv: Drop useless STATIC_ASSERT in anv_physical_device_init_queue_families() assert(family_count <= ANV_MAX_QUEUE_FAMILIES) already takes care of STATIC_ASSERT without need of updates. Suggested-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> 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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 29c2a57d7f8..4e7c31d6f60 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2085,11 +2085,6 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice) .engine_class = INTEL_ENGINE_CLASS_COPY, }; } - - /* 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 >= 5); } else { /* Default to a single render queue */ pdevice->queue.families[family_count++] = (struct anv_queue_family) {