radv: fix invalid element type when filling vertex input default values
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Feb 2019 13:14:03 +0000 (14:14 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 16 Feb 2019 14:33:18 +0000 (15:33 +0100)
commit52bdb043af952691b560118ca99e341527560e13
tree01641fc4dc5f14dfc1bbe655e7a30cb2c35c494f
parent7188e2ba1577fb6e4cf3cb07b73e3fd15950d635
radv: fix invalid element type when filling vertex input default values

The elements added into a vector should have the same type as the
first one, otherwise this hits an assertion in LLVM.

Fixes: 4b3549c0846 ("radv: reduce the number of loaded channels for vertex input fetches")
reported-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_nir_to_llvm.c