mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
intel/nir: Lower 8-bit phis on Gen11+
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8872>
This commit is contained in:
parent
d41ac6e2ca
commit
d670afa27a
1 changed files with 7 additions and 0 deletions
|
|
@ -770,6 +770,13 @@ lower_bit_size_callback(const nir_instr *instr, UNUSED void *data)
|
|||
break;
|
||||
}
|
||||
|
||||
case nir_instr_type_phi: {
|
||||
nir_phi_instr *phi = nir_instr_as_phi(instr);
|
||||
if (devinfo->gen >= 11 && phi->dest.ssa.bit_size == 8)
|
||||
return 16;
|
||||
return 0;
|
||||
}
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue