From 024c66ec0fe03f4014dbc81193c0a2bf83b03025 Mon Sep 17 00:00:00 2001 From: Lorenzo Rossi Date: Thu, 26 Mar 2026 11:45:12 +0100 Subject: [PATCH] pan: Add PAN_MAX_MULTIVIEW_VIEW_COUNT Signed-off-by: Lorenzo Rossi Reviewed-by: Faith Ekstrand Part-of: --- src/panfrost/compiler/pan_compiler.h | 2 ++ src/panfrost/vulkan/panvk_vX_physical_device.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panfrost/compiler/pan_compiler.h b/src/panfrost/compiler/pan_compiler.h index fad6affc740..3022848a82e 100644 --- a/src/panfrost/compiler/pan_compiler.h +++ b/src/panfrost/compiler/pan_compiler.h @@ -82,6 +82,8 @@ enum { PAN_VERTEX_ID = 16, PAN_INSTANCE_ID = 17, PAN_MAX_ATTRIBUTE }; */ #define PAN_MAX_PUSH 128 +#define PAN_MAX_MULTIVIEW_VIEW_COUNT 8 + /* Architectural invariants (Midgard and Bifrost): UBO must be <= 2^16 bytes so * an offset to a word must be < 2^16. There are less than 2^8 UBOs */ diff --git a/src/panfrost/vulkan/panvk_vX_physical_device.c b/src/panfrost/vulkan/panvk_vX_physical_device.c index f2f0a5818b7..95e390a2e9b 100644 --- a/src/panfrost/vulkan/panvk_vX_physical_device.c +++ b/src/panfrost/vulkan/panvk_vX_physical_device.c @@ -917,7 +917,7 @@ panvk_per_arch(get_physical_device_properties)( VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT, .subgroupQuadOperationsInAllStages = false, .pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES, - .maxMultiviewViewCount = 8, + .maxMultiviewViewCount = PAN_MAX_MULTIVIEW_VIEW_COUNT, .maxMultiviewInstanceIndex = UINT32_MAX, .protectedNoFault = false, .maxPerSetDescriptors = UINT16_MAX,