turnip: fix register_index calculations of xfb outputs
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 1 Jun 2021 13:27:27 +0000 (16:27 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Jun 2021 23:55:00 +0000 (23:55 +0000)
commitb71e27ea84d8260dd534067872cb83016bf97e02
treecedf45b6b4c5578d17ab5a586a78f278d6cd439d
parent551d7fddfba1c88cde64e72b12013c9861712f29
turnip: fix register_index calculations of xfb outputs

nir_assign_io_var_locations() does not use outputs_written when
assigning driver locations. Use driver_location to avoid incorrectly
guessing what locations it assigned.

Copied from lavapipe 8731a1beb72da8f4165e5596519a56d16299c3f0

Will fix provoking vertex tf tests when VK_EXT_provoking_vertex
would be enabled:
 dEQP-VK.rasterization.provoking_vertex.transform_feedback.*

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11111>
src/freedreno/vulkan/tu_shader.c