pvr: Change push_constants_shader_stages to type pvr_stage_allocation
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Tue, 25 Apr 2023 14:06:26 +0000 (15:06 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Apr 2023 09:16:02 +0000 (09:16 +0000)
commita8f841dad92bcff5397d5599130c85695c66572a
tree17f6653799be4735063124132f5139a84002b83b
parentc38da3dcd22bbdde7fb8a6ac824d0af4ac85c8e3
pvr: Change push_constants_shader_stages to type pvr_stage_allocation

Previously the code was saving the mask as a VkShaderStageFlags
but when allocating shareds it checked against pvr_stage_allocation.
This causes problems as only the vertex bit matches the
VkShaderStageFlagBits so the push constants utilized in fragment
shaders weren't picked up properly.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22731>
src/imagination/vulkan/pvr_common.h
src/imagination/vulkan/pvr_descriptor_set.c