Mesa (master): radeon/llvm: Mark M0 as a def when lowering interpolation instructions
Tom Stellard
tstellar at kemper.freedesktop.org
Wed Aug 29 20:43:44 UTC 2012
Module: Mesa
Branch: master
Commit: 73a2c4b9db638cad83e412097ed3433649aab47b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73a2c4b9db638cad83e412097ed3433649aab47b
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Tue Aug 28 15:38:30 2012 -0400
radeon/llvm: Mark M0 as a def when lowering interpolation instructions
---
src/gallium/drivers/radeon/SIISelLowering.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/radeon/SIISelLowering.cpp b/src/gallium/drivers/radeon/SIISelLowering.cpp
index 31876bf..c917b26 100644
--- a/src/gallium/drivers/radeon/SIISelLowering.cpp
+++ b/src/gallium/drivers/radeon/SIISelLowering.cpp
@@ -157,8 +157,7 @@ void SITargetLowering::LowerSI_INTERP(MachineInstr *MI, MachineBasicBlock &BB,
MachineOperand attr = MI->getOperand(4);
MachineOperand params = MI->getOperand(5);
- BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::S_MOV_B32))
- .addReg(AMDGPU::M0)
+ BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::S_MOV_B32), AMDGPU::M0)
.addOperand(params);
BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::V_INTERP_P1_F32), tmp)
@@ -184,8 +183,7 @@ void SITargetLowering::LowerSI_INTERP_CONST(MachineInstr *MI,
MachineOperand attr = MI->getOperand(2);
MachineOperand params = MI->getOperand(3);
- BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::S_MOV_B32))
- .addReg(AMDGPU::M0)
+ BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::S_MOV_B32), AMDGPU::M0)
.addOperand(params);
BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::V_INTERP_MOV_F32))
More information about the mesa-commit
mailing list