radv: fix VS prologs with GPL and static binding stride
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 4 Apr 2023 11:10:01 +0000 (13:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Apr 2023 07:18:37 +0000 (07:18 +0000)
commit9085c9d43e37c643ee9c9fb01b6184fa7c60bffd
tree13c05c908d2369fe4648e8a5b9daeeebd6e4e146
parent9217c565b2871ba377f23adc571cbe85b6a90c1f
radv: fix VS prologs with GPL and static binding stride

When a graphics pipeline library is created with only the vertex input
state, the driver binds this state at pipeline bind time. Though the
vertex binding stride is not necessarily dynamic, in this case the
pipeline stride should be used.

This fixes GPU hangs with recent
dEQP-VK.pipeline.fast_linked_library.vertex_input.*.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22285>
src/amd/vulkan/radv_cmd_buffer.c