Module: Mesa Branch: master Commit: 227df98fa63ae5cd0509399c030d74dc6f524226 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=227df98fa63ae5cd0509399c030d74dc6f524226
Author: Samuel Pitoiset <[email protected]> Date: Thu Feb 14 09:43:36 2019 +0100 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 <[email protected]> --- src/amd/vulkan/radv_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 08ab64971a..f1fc392292 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -2072,7 +2072,7 @@ radv_fixup_vertex_input_fetches(struct radv_shader_context *ctx, if (LLVMGetTypeKind(LLVMTypeOf(value)) == LLVMVectorTypeKind) { unsigned vec_size = LLVMGetVectorSize(LLVMTypeOf(value)); - if (num_channels == vec_size) + if (num_channels == 4 && num_channels == vec_size) return value; num_channels = MIN2(num_channels, vec_size); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
