freedreno/ir3: fix ir3_nir_move_varying_inputs
authorJonathan Marek <jonathan@marek.ca>
Sun, 14 Jun 2020 03:50:22 +0000 (23:50 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 14 Jun 2020 17:53:47 +0000 (17:53 +0000)
commit1d9e6e456ad60f4c995c24c5cde6d73943141e6c
tree0384d80a8e394e54ea1aeda71d459dc7ee326be6
parent356be07ce279e6ff2d468fd1321a2edb2d6b2df2
freedreno/ir3: fix ir3_nir_move_varying_inputs

ir3_nir_move_varying_inputs is broken when there a load input outside of
the first block which depends on the result of a previous load input.

This simplification/rework avoids the problem, and should also be faster.

Fixes this dEQP-VK test:

dEQP-VK.pipeline.multisample_interpolation.offset_interpolate_at_pixel_center.128_128_1.samples_2

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5465>
src/freedreno/ir3/ir3_nir_move_varying_inputs.c