turnip: fix vbs emission when there are holes in bindings
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 5 Oct 2021 11:25:52 +0000 (14:25 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 Oct 2021 10:05:50 +0000 (10:05 +0000)
commit6a16b6a74c3617205367ab1126b0d9150ca8dfe3
tree1eacdd064618824774d501faab29a1d6e7ee4974
parentbc5892b7fc65d03a05a16693c16dbdd467f4c4bd
turnip: fix vbs emission when there are holes in bindings

Otherwise we read garbage for bindings with value above
vertexBindingDescriptionCount.

Fixes vkd3d test "test_append_aligned_element"

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13195>
src/freedreno/vulkan/tu_pipeline.c