radeon/llvm: Fix VTX_READ patterns
authorTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 18:49:03 +0000 (14:49 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 20:52:26 +0000 (16:52 -0400)
commit0ebf2318b3d5e60adfc43e477b19acdc3cd4cc07
tree0fc1f6ded65fc97e095420b7d3750f32098c0eb5
parentc108831d4451f624167d2c433282c6ac63541a79
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.
src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp
src/gallium/drivers/radeon/R600CodeEmitter.cpp
src/gallium/drivers/radeon/R600Instructions.td