mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 02:50:29 +01:00
agx: Mark components as ASSERTED
Prevents a release build warning. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
This commit is contained in:
parent
8795501cef
commit
be4d88a6ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue