From 18cb86760612f2cc921f64f1d76c4ef89ac97cc0 Mon Sep 17 00:00:00 2001 From: Ivan Chikish Date: Fri, 21 Jul 2023 18:02:54 +0300 Subject: [PATCH] [amdgpu] Change V_INTERP_MOV_F32 hack --- hw/amdgpu/shader/src/Fragment.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/amdgpu/shader/src/Fragment.cpp b/hw/amdgpu/shader/src/Fragment.cpp index 0c5ca3c61..ef7e7b8de 100644 --- a/hw/amdgpu/shader/src/Fragment.cpp +++ b/hw/amdgpu/shader/src/Fragment.cpp @@ -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();