From: Samuel Pitoiset Date: Wed, 20 May 2020 17:59:50 +0000 (+0200) Subject: radv: fix duplicated expression in ac_setup_rings() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57a4837f6be2b0c8b6a9174d0a385c7f0bfb00e1;p=mesa.git radv: fix duplicated expression in ac_setup_rings() Probably a search&replace mistake when that common struct was introduced. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3006 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 51416262df1..d8b43c0ea64 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -3712,7 +3712,7 @@ ac_setup_rings(struct radv_shader_context *ctx) { if (ctx->args->options->chip_class <= GFX8 && (ctx->stage == MESA_SHADER_GEOMETRY || - ctx->args->options->key.vs_common_out.as_es || ctx->args->options->key.vs_common_out.as_es)) { + ctx->args->options->key.vs_common_out.as_es)) { unsigned ring = ctx->stage == MESA_SHADER_GEOMETRY ? RING_ESGS_GS : RING_ESGS_VS; LLVMValueRef offset = LLVMConstInt(ctx->ac.i32, ring, false);