From df4e3e4777b4b2b8b446ae4758bf539a61ee6558 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 27 Mar 2024 14:25:12 +0100 Subject: [PATCH] panvk: Fix the colorAttachmentCount check in begin_rendering_init_fbinfo() colorAttachmentCount should be less that or equal the number of RT slots, not strictly less than. Fixes: 595d362d4bc7 ("panvk: Implement dynamic rendering entry points") Signed-off-by: Boris Brezillon Reviewed-by: Mary Guillemard Part-of: --- src/panfrost/vulkan/panvk_vX_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_vX_cmd_buffer.c b/src/panfrost/vulkan/panvk_vX_cmd_buffer.c index 64ef4f94688..61f653d34a4 100644 --- a/src/panfrost/vulkan/panvk_vX_cmd_buffer.c +++ b/src/panfrost/vulkan/panvk_vX_cmd_buffer.c @@ -1760,7 +1760,7 @@ panvk_cmd_begin_rendering_init_fbinfo(struct panvk_cmd_buffer *cmdbuf, .rt_count = pRenderingInfo->colorAttachmentCount, }; - assert(pRenderingInfo->colorAttachmentCount < ARRAY_SIZE(fbinfo->rts)); + assert(pRenderingInfo->colorAttachmentCount <= ARRAY_SIZE(fbinfo->rts)); for (uint32_t i = 0; i < pRenderingInfo->colorAttachmentCount; i++) { const VkRenderingAttachmentInfo *att =