tu: Fix varyings interpolation reading stale values
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Thu, 5 Jan 2023 12:36:46 +0000 (13:36 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Jan 2023 12:37:19 +0000 (12:37 +0000)
commita45d32b10b317f69187392c2d165071248a91f49
treed3b6c90a1ad049007850aff1e26c061ba3f7ec2e
parent25a151533cd4f4eb88705caa572097a201c0c16c
tu: Fix varyings interpolation reading stale values

tu6_vpc_varying_mode returned how many bits are consumed IF they are
non-zero, for SMOOTH mode nothing is written and it was treated like
no bits were consumed.

When input with smooth interpolation was the last one and straddled
the VPC_VARYING_INTERP_MODE regs, the last interp mode were not written.

Fixes misrendering in "Psychonauts 2".

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