diff options
Diffstat (limited to 'src/gallium/drivers/radeon/SIISelLowering.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/SIISelLowering.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/SIISelLowering.cpp b/src/gallium/drivers/radeon/SIISelLowering.cpp index ebe9514a2b9..42c2e7f7ceb 100644 --- a/src/gallium/drivers/radeon/SIISelLowering.cpp +++ b/src/gallium/drivers/radeon/SIISelLowering.cpp @@ -16,6 +16,7 @@ #include "AMDIL.h" #include "AMDILIntrinsicInfo.h" #include "SIInstrInfo.h" +#include "SIMachineFunctionInfo.h" #include "SIRegisterInfo.h" #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineRegisterInfo.h" @@ -122,6 +123,11 @@ MachineBasicBlock * SITargetLowering::EmitInstrWithCustomInserter( .addImm(1); // NEG MI->eraseFromParent(); break; + case AMDGPU::SHADER_TYPE: + BB->getParent()->getInfo<SIMachineFunctionInfo>()->ShaderType = + MI->getOperand(0).getImm(); + MI->eraseFromParent(); + break; case AMDGPU::SI_INTERP: LowerSI_INTERP(MI, *BB, I, MRI); |