radv: correctly skip vertex loads with packed formats
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 1 Jun 2023 15:03:46 +0000 (16:03 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Jun 2023 16:59:16 +0000 (16:59 +0000)
commitb9c1d74ff4f823e3e8c63eab6cd3ecb3686eaeec
treeeb23d53e1c51a23637c475248cd23cc74c749d0a
parent69e259dcff9fed85ded85105ba7cdd8a3fbbf810
radv: correctly skip vertex loads with packed formats

This is supposed to check whether any channels of the element is used, but
skipped_start is always 0 for packed formats.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Fixes: a46acdbc3ff ("radv: Lower non-dynamic VS inputs in NIR.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9062
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23370>
src/amd/vulkan/nir/radv_nir_lower_vs_inputs.c