From 5049fbddb4687799a10eb585c8789afa0d080535 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 1 Mar 2019 14:01:08 -0600 Subject: [PATCH] anv: Count surfaces for non-YCbCr images in GetDescriptorSetLayoutSupport We were accidentally not counting those surfaces Fixes: ddc4069122 "anv: Implement VK_KHR_maintenance3" Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index a4e466cf3dd..0df0c3825e5 100644 --- a/src/intel/vulkan/anv_descriptor_set.c +++ b/src/intel/vulkan/anv_descriptor_set.c @@ -58,6 +58,9 @@ void anv_GetDescriptorSetLayoutSupport( anv_foreach_stage(s, binding->stageFlags) surface_count[s] += sampler->n_planes; } + } else { + anv_foreach_stage(s, binding->stageFlags) + surface_count[s] += binding->descriptorCount; } break; -- 2.30.2