v3dv/pipeline: fix adding texture/samplers array elements to texture/sampler map
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 26 Mar 2020 15:30:20 +0000 (16:30 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:29 +0000 (21:21 +0000)
commitf47d0829cbee59e54ceb7f25ccea31bc78d5b8e2
treeb6d4905bde0a8bbbc67ceaf208593d5f16e6ba09
parent6e39565e596812f76861b6ad1c6ceabd3eb60963
v3dv/pipeline: fix adding texture/samplers array elements to texture/sampler map

For arrays we are adding one entry on the map per array element. This
makes getting back the descriptor for each array element easier, as
for example, for ubo arrays, each array element can be bound to a
different descriptor buffer.

For samplers arrays this would also make sense.

Fixes crashes on tests like:
dEQP-VK.binding_model.shader_access.primary_cmd_buf.combined_image_sampler_mutable.fragment.descriptor_array.2d

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_pipeline.c