summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/R600CodeEmitter.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-31 14:03:29 -0400
committerTom Stellard <[email protected]>2012-06-01 11:28:10 -0400
commitf2781271c735fcdf94ed2dd831a7fa3a854deae5 (patch)
tree26971a256e52398a210dc56941afb1d80bdcbb96 /src/gallium/drivers/radeon/R600CodeEmitter.cpp
parent6a829a1b724ca0d960decee217d260b4de8a5463 (diff)
radeon/llvm: Remove AMDIL GLOBALLOAD* instructions
Diffstat (limited to 'src/gallium/drivers/radeon/R600CodeEmitter.cpp')
-rw-r--r--src/gallium/drivers/radeon/R600CodeEmitter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/R600CodeEmitter.cpp b/src/gallium/drivers/radeon/R600CodeEmitter.cpp
index b13fd8bd2e6..e8d0efefff5 100644
--- a/src/gallium/drivers/radeon/R600CodeEmitter.cpp
+++ b/src/gallium/drivers/radeon/R600CodeEmitter.cpp
@@ -202,7 +202,8 @@ bool R600CodeEmitter::runOnMachineFunction(MachineFunction &MF) {
emit(inst);
break;
}
- case AMDIL::VTX_READ_eg:
+ case AMDIL::VTX_READ_PARAM_eg:
+ case AMDIL::VTX_READ_GLOBAL_eg:
{
emitByte(INSTR_VTX);
// inst
@@ -212,7 +213,7 @@ bool R600CodeEmitter::runOnMachineFunction(MachineFunction &MF) {
emitByte(2);
// buffer_id
- emitByte(MI.getOperand(2).getImm());
+ emitByte(MI.getOpcode() == AMDIL::VTX_READ_PARAM_eg ? 0 : 1);
// src_gpr
emitByte(getHWReg(MI.getOperand(1).getReg()));