ac/nir: Sanitize location_frac for local variables.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 10 Jan 2018 16:05:10 +0000 (17:05 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 10 Jan 2018 23:56:52 +0000 (00:56 +0100)
commit67e09c8b451e1db8bd901279160b982b0df0fa41
tree81f36741ef410f7fa5c4443e0b70741526190322
parentaf8fd389961aabdac0a5b0e6171b17950a659f30
ac/nir: Sanitize location_frac for local variables.

If they were promoted from inputs/outputs, they could have a
non-zero value left over, which messed with our store handling.

Fixes: 06f05040eb "radv: Link shaders."
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/common/ac_nir_to_llvm.c