These need the same treatment as d2f, so generalize our d2f lowering to cover
these too.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
if (inst->opcode != BRW_OPCODE_MOV)
continue;
- if (inst->dst.type != BRW_REGISTER_TYPE_F)
+ if (inst->dst.type != BRW_REGISTER_TYPE_F &&
+ inst->dst.type != BRW_REGISTER_TYPE_D &&
+ inst->dst.type != BRW_REGISTER_TYPE_UD)
continue;
if (inst->src[0].type != BRW_REGISTER_TYPE_DF)
case nir_op_f2d:
case nir_op_d2f:
+ case nir_op_d2i:
+ case nir_op_d2u:
inst = bld.MOV(result, op[0]);
inst->saturate = instr->dest.saturate;
break;