radv: Interpolate less aggressively.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 23 Feb 2019 13:33:31 +0000 (14:33 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 26 Feb 2019 18:51:35 +0000 (18:51 +0000)
commitc0110477b5503978adf37f64c65c30c9304e3fe4
treeaa42303bbdd14c13528ed5dfee4a8bd48ae222b9
parent1fd79b4b6d46c95892efb10f2571d36b110224f9
radv: Interpolate less aggressively.

Seems like dxvk used integer builtins without setting the flat
interpolation decoration.

I believe in the current spec the app is required to set these,
but in the meantime to avoid breaking things in stable releases
(and so close to release for 19.0), only expand the interpolation
to float16 and struct (which cannot be builtins as our spirv parser
lowers the builtin block).

Fixes: f3247841040 "radv: Allow interpolation on non-float types."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c