nak/nir: Don't lower 1-bit phis

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand 2023-10-08 23:22:01 -05:00 committed by Marge Bot
parent 8d802553a2
commit 29804bfd26

View file

@ -168,7 +168,7 @@ lower_bit_size_cb(const nir_instr *instr, void *_data)
case nir_instr_type_phi: {
nir_phi_instr *phi = nir_instr_as_phi(instr);
if (phi->def.bit_size != 32)
if (phi->def.bit_size != 32 && phi->def.bit_size != 1)
return 32;
return 0;
}