From 769bf48d1667dc7836d9c4af01c37005b2dd96f5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 22 May 2020 10:09:22 +0200 Subject: [PATCH] radv: remove useless assignment in build_streamout_vertex() Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3025 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_nir_to_llvm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index d8b43c0ea64..4dd6ded5d02 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -2292,8 +2292,7 @@ static void build_streamout_vertex(struct radv_shader_context *ctx, for (unsigned i = 0; i < AC_LLVM_MAX_OUTPUTS; ++i) { unsigned output_usage_mask = ctx->args->shader_info->gs.output_usage_mask[i]; - uint8_t output_stream = - output_stream = ctx->args->shader_info->gs.output_streams[i]; + uint8_t output_stream = ctx->args->shader_info->gs.output_streams[i]; if (!(ctx->output_mask & (1ull << i)) || output_stream != stream) -- 2.30.2