From: Jason Ekstrand Date: Fri, 1 Mar 2019 20:01:08 +0000 (-0600) Subject: anv: Count surfaces for non-YCbCr images in GetDescriptorSetLayoutSupport X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5049fbddb4687799a10eb585c8789afa0d080535;p=mesa.git 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 --- 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;