mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
v3d/compiler: implement normalised to float conversions
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35820>
This commit is contained in:
parent
082e6369f9
commit
c9e9d72cce
1 changed files with 12 additions and 0 deletions
|
|
@ -1780,13 +1780,25 @@ ntq_emit_alu(struct v3d_compile *c, nir_alu_instr *instr)
|
|||
break;
|
||||
|
||||
case nir_op_f2unorm_16_v3d:
|
||||
assert(c->devinfo->ver >= 71);
|
||||
result = vir_FTOUNORM16(c, src[0]);
|
||||
break;
|
||||
|
||||
case nir_op_f2snorm_16_v3d:
|
||||
assert(c->devinfo->ver >= 71);
|
||||
result = vir_FTOSNORM16(c, src[0]);
|
||||
break;
|
||||
|
||||
case nir_op_snorm2f_16_v3d:
|
||||
assert(c->devinfo->ver >= 71);
|
||||
result = vir_FUNPACKSNORMLO(c, src[0]);
|
||||
break;
|
||||
|
||||
case nir_op_unorm2f_16_v3d:
|
||||
assert(c->devinfo->ver >= 71);
|
||||
result = vir_FUNPACKUNORMLO(c, src[0]);
|
||||
break;
|
||||
|
||||
case nir_op_fsat:
|
||||
assert(v3d_device_has_unpack_sat(c->devinfo));
|
||||
result = vir_FMOV(c, src[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue