OSDN Git Service

radv: Interpolate less aggressively.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 23 Feb 2019 13:33:31 +0000 (14:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 6 Mar 2019 21:35:53 +0000 (21:35 +0000)
commit5a7cad3d52cca0ed54dc408da5699373e04b53c9
tree5332b1c155d7f862dbd16f0d3bd86273979cdd12
parent6765cee986db8406d57ec81420c140c5a7937523
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>
(cherry picked from commit c0110477b5503978adf37f64c65c30c9304e3fe4)
src/amd/vulkan/radv_nir_to_llvm.c