diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2013-01-16 15:27:54 +0100 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-01-16 16:52:19 -0500 |
commit | da961b066ee35d3af05adeac3141c1fc7d6ddcd3 (patch) | |
tree | 4be031c7dc8fc28dccda3d1e4cfcbc577f5c7ca1 /lib/Target/R600/SIInstructions.td | |
parent | 403e472e75fd736d8e457f2b9da4324486968c94 (diff) |
R600/SI: Use unnormalized coordinates for sampling with the RECT target.push-jan16
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'lib/Target/R600/SIInstructions.td')
-rw-r--r-- | lib/Target/R600/SIInstructions.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td index 0f9d572c4ad..4164c558378 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -1191,6 +1191,12 @@ def : Pat < SReg_256:$rsrc, SReg_128:$sampler) >; +def : Pat < + (int_SI_sample imm:$writemask, VReg_128:$coord, SReg_256:$rsrc, SReg_128:$sampler, TEX_RECT), + (IMAGE_SAMPLE imm:$writemask, 1, 0, 0, 0, 0, 0, 0, VReg_128:$coord, + SReg_256:$rsrc, SReg_128:$sampler) +>; + /* int_SI_sample_lod */ def : Pat < (int_SI_sample_lod imm:$writemask, VReg_128:$coord, SReg_256:$rsrc, SReg_128:$sampler, imm), |