From 677153c642e62bb65a8119b8f09fa9dc13dcc18e Mon Sep 17 00:00:00 2001 From: John Anthony Date: Sun, 15 Jun 2025 12:08:07 +0200 Subject: [PATCH] panvk: fix maxInlineUniformTotalSize maxInlineUniformTotalSize is derived from MAX_INLINE_UNIFORM_BLOCK_DESCRIPTORS, but due to missing parenthesis around the expression, the value calculated is incorrect. Reviewed-by: Boris Brezillon Reviewed-by: Olivia Lee Reviewed-by: Christoph Pillmayer Fixes: 0440d1dd03e ("panvk: Advertise VK_EXT_inline_uniform_block") Part-of: --- src/panfrost/vulkan/panvk_vX_physical_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_vX_physical_device.c b/src/panfrost/vulkan/panvk_vX_physical_device.c index 646ade718cf..ba342cc989b 100644 --- a/src/panfrost/vulkan/panvk_vX_physical_device.c +++ b/src/panfrost/vulkan/panvk_vX_physical_device.c @@ -31,7 +31,7 @@ /* We reserve one ubo for push constant, one for sysvals and one per-set for the * descriptor metadata */ #define RESERVED_UBO_COUNT 6 -#define MAX_INLINE_UNIFORM_BLOCK_DESCRIPTORS 32 - RESERVED_UBO_COUNT +#define MAX_INLINE_UNIFORM_BLOCK_DESCRIPTORS (32 - RESERVED_UBO_COUNT) #define MAX_INLINE_UNIFORM_BLOCK_SIZE (1 << 16) void