[amdgpu] Change V_INTERP_MOV_F32 hack

This commit is contained in:
Ivan Chikish 2023-07-21 18:02:54 +03:00
parent 32774c716f
commit 18cb867606

View file

@ -3588,7 +3588,8 @@ void convertVintrp(Fragment &fragment, Vintrp inst) {
// interpolated value stored in attr#
break;
case Vintrp::Op::V_INTERP_P2_F32: {
case Vintrp::Op::V_INTERP_P2_F32:
case Vintrp::Op::V_INTERP_MOV_F32: {
// TODO: operation should read from LDS
// TODO: accurate emulation
@ -3600,11 +3601,12 @@ void convertVintrp(Fragment &fragment, Vintrp inst) {
fragment.setVectorOperand(inst.vdst, {channelType, attrChan});
break;
}
case Vintrp::Op::V_INTERP_MOV_F32: {
fragment.setVectorOperand(
inst.vdst, fragment.getScalarOperand(inst.vsrc, TypeId::Float32x4));
break;
}
// {
// fragment.setVectorOperand(
// inst.vdst, fragment.getScalarOperand(inst.vsrc,
// TypeId::Float32x4));
// break;
// }
default:
inst.dump();