v3dv/pipeline: support for specialization constants
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 May 2020 21:28:58 +0000 (23:28 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:30 +0000 (21:21 +0000)
commite7232252b7b2fed87b89c78fa70c88d20913caac
tree71a6637b23d0c52519de67ccac1fc3b9b0fc2b17
parent03f5fae88fcb62d0719c5eee60333f04db92fd4f
v3dv/pipeline: support for specialization constants

That it is justconvert VkSpecializationInfo to
nir_spirv_specialization and pass it to spirv_to_nir.

The code is also basically the same used by anv, tu, and radv
Eventually it would make sense to move it to a common place.

Note that we are using calloc there to allocate the temporary
spec_entries. Trying to use vk_alloc2 causes some problems with the
nir_validate.

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