mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
zink: Collapse is_ssa check
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24471>
This commit is contained in:
parent
91f676819c
commit
2cb3c2cbfb
1 changed files with 1 additions and 4 deletions
|
|
@ -2032,10 +2032,7 @@ alu_instr_src_components(const nir_alu_instr *instr, unsigned src)
|
|||
if (nir_op_infos[instr->op].input_sizes[src] > 0)
|
||||
return nir_op_infos[instr->op].input_sizes[src];
|
||||
|
||||
if (instr->dest.dest.is_ssa)
|
||||
return instr->dest.dest.ssa.num_components;
|
||||
else
|
||||
return instr->dest.dest.reg.reg->num_components;
|
||||
return instr->dest.dest.ssa.num_components;
|
||||
}
|
||||
|
||||
static SpvId
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue