From f8e9c29020289387f0f429ac6d3c28e73e5847a3 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 10 May 2012 15:29:00 -0400 Subject: radeonsi/llvm: Move lowering of RETURN to ConvertToISA pass --- src/gallium/drivers/radeon/SIInstrInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/radeon/SIInstrInfo.cpp') diff --git a/src/gallium/drivers/radeon/SIInstrInfo.cpp b/src/gallium/drivers/radeon/SIInstrInfo.cpp index e733aa856e4..0cb97643a7f 100644 --- a/src/gallium/drivers/radeon/SIInstrInfo.cpp +++ b/src/gallium/drivers/radeon/SIInstrInfo.cpp @@ -107,6 +107,8 @@ unsigned SIInstrInfo::getISAOpcode(unsigned AMDILopcode) const { switch (AMDILopcode) { case AMDIL::MAD_f32: return AMDIL::V_MAD_LEGACY_F32; + //XXX We need a better way of detecting end of program + case AMDIL::RETURN: return AMDIL::S_ENDPGM; default: return AMDGPUInstrInfo::getISAOpcode(AMDILopcode); } } -- cgit v1.2.3