From 5873dcb32f64582cf0ae77774b36d26bfaed9250 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 1 Mar 2023 11:02:28 -0800 Subject: [PATCH] nir/lower_mediump: Fix assertion about copy_deref lowering matching. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Copy and paste typo. We shouldn't have copy_derefs during this pass, anyway, but caught a failure with my upcoming unit testing. Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_lower_mediump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_mediump.c b/src/compiler/nir/nir_lower_mediump.c index 2e7a40d..3da34ea 100644 --- a/src/compiler/nir/nir_lower_mediump.c +++ b/src/compiler/nir/nir_lower_mediump.c @@ -515,7 +515,7 @@ nir_lower_mediump_vars_impl(nir_function_impl *impl, nir_variable_mode modes, case nir_intrinsic_copy_deref: { nir_deref_instr *dst = nir_src_as_deref(intrin->src[0]); - nir_deref_instr *src = nir_src_as_deref(intrin->src[0]); + nir_deref_instr *src = nir_src_as_deref(intrin->src[1]); /* If we convert once side of a copy and not the other, that * would be very bad. */ -- 2.7.4