From be4d88a6baea8b60587352d3d2ef63814966ae1d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 5 Jul 2021 16:42:54 -0400 Subject: [PATCH] agx: Mark components as ASSERTED Prevents a release build warning. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index e9796577af3..ad3321a49af 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -397,7 +397,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr) unsigned srcs = nir_op_infos[instr->op].num_inputs; unsigned sz = nir_dest_bit_size(instr->dest.dest); unsigned src_sz = srcs ? nir_src_bit_size(instr->src[0].src) : 0; - unsigned comps = nir_dest_num_components(instr->dest.dest); + ASSERTED unsigned comps = nir_dest_num_components(instr->dest.dest); assert(comps == 1 || nir_op_is_vec(instr->op)); assert(sz == 1 || sz == 16 || sz == 32 || sz == 64);