radv: fix duplicated expression in ac_setup_rings()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 May 2020 17:59:50 +0000 (19:59 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 07:51:55 +0000 (07:51 +0000)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5130>

src/amd/vulkan/radv_nir_to_llvm.c

index 51416262df19edb2f7b2f1834cb47b9dcd065376..d8b43c0ea64e4b36b1e2b1b648354975bf428da9 100644 (file)
@@ -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);