mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
nak/nir: Allow boolean vote_ieq
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
143d88dcc3
commit
37de14e2e2
1 changed files with 6 additions and 1 deletions
|
|
@ -142,8 +142,13 @@ lower_bit_size_cb(const nir_instr *instr, void *_data)
|
|||
case nir_instr_type_intrinsic: {
|
||||
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
|
||||
switch (intrin->intrinsic) {
|
||||
case nir_intrinsic_vote_feq:
|
||||
case nir_intrinsic_vote_ieq:
|
||||
if (intrin->src[0].ssa->bit_size != 1 &&
|
||||
intrin->src[0].ssa->bit_size != 32)
|
||||
return 32;
|
||||
return 0;
|
||||
|
||||
case nir_intrinsic_vote_feq:
|
||||
case nir_intrinsic_read_invocation:
|
||||
case nir_intrinsic_read_first_invocation:
|
||||
case nir_intrinsic_shuffle:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue