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:

committed by
Marge Bot

parent
d41ac6e2ca
commit
d670afa27a
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user