summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/R600CodeEmitter.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-06-01 14:49:03 -0400
committerTom Stellard <[email protected]>2012-06-01 16:52:26 -0400
commit0ebf2318b3d5e60adfc43e477b19acdc3cd4cc07 (patch)
tree0fc1f6ded65fc97e095420b7d3750f32098c0eb5 /src/gallium/drivers/radeon/R600CodeEmitter.cpp
parentc108831d4451f624167d2c433282c6ac63541a79 (diff)
radeon/llvm: Fix VTX_READ patterns
The VTX_READ instructions were using the ADDRParam ComplexPattern which allows a load instruction's offset to be a register, but VTX_READ instructions can only handle an immediate offset. Also, the load_param pattern fragment had an erroneous return true; statement that was causing it to match the wrong load instructions.
Diffstat (limited to 'src/gallium/drivers/radeon/R600CodeEmitter.cpp')
-rw-r--r--src/gallium/drivers/radeon/R600CodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/R600CodeEmitter.cpp b/src/gallium/drivers/radeon/R600CodeEmitter.cpp
index 8715f1133e8..f75c2f51bdc 100644
--- a/src/gallium/drivers/radeon/R600CodeEmitter.cpp
+++ b/src/gallium/drivers/radeon/R600CodeEmitter.cpp
@@ -255,7 +255,7 @@ bool R600CodeEmitter::runOnMachineFunction(MachineFunction &MF) {
emitByte(0);
// offset
- emitTwoBytes(0);
+ emitTwoBytes(MI.getOperand(2).getImm());
// endian
emitByte(0);