radv: fix radv_fixup_vertex_input_fetches()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Feb 2019 08:43:36 +0000 (09:43 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Feb 2019 08:44:35 +0000 (09:44 +0100)
commit227df98fa63ae5cd0509399c030d74dc6f524226
treec377f085e3a145aa84d7288ff1470adcd83bce42
parent4b3549c0846f451119ee883a33205b0caa1cf16e
radv: fix radv_fixup_vertex_input_fetches()

We should check that num_channels is 4, otherwise that breaks
the world. Sorry for the short breakage.

Fixes: 4b3549c0846 ("radv: reduce the number of loaded channels for vertex input fetches")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c