summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-10 16:58:27 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-10 16:58:27 +0000
commit9a32e5f29aa51ed65a75556e310b2168facd1d52 (patch)
tree4d2f0e91978414f6aa6e221ae972b9ca2c4f349f
parent00107f82033ad1899a1e104324b4bf3ed6395abe (diff)
downloadbcm5719-llvm-9a32e5f29aa51ed65a75556e310b2168facd1d52.tar.gz
bcm5719-llvm-9a32e5f29aa51ed65a75556e310b2168facd1d52.zip
R600/SI: Only use S_WQM_B64 in pixel shaders
This doesn't change any functionality, since we only have two shader types (compute and pixel) that use local memory. We're just changing the logic to match the documentation. llvm-svn: 201096
-rw-r--r--llvm/lib/Target/R600/SILowerControlFlow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SILowerControlFlow.cpp b/llvm/lib/Target/R600/SILowerControlFlow.cpp
index 8c12e1357f0..42cc4e989a3 100644
--- a/llvm/lib/Target/R600/SILowerControlFlow.cpp
+++ b/llvm/lib/Target/R600/SILowerControlFlow.cpp
@@ -512,7 +512,7 @@ bool SILowerControlFlowPass::runOnMachineFunction(MachineFunction &MF) {
AMDGPU::M0).addImm(0xffffffff);
}
- if (NeedWQM && MFI->ShaderType != ShaderType::COMPUTE) {
+ if (NeedWQM && MFI->ShaderType == ShaderType::PIXEL) {
MachineBasicBlock &MBB = MF.front();
BuildMI(MBB, MBB.getFirstNonPHI(), DebugLoc(), TII->get(AMDGPU::S_WQM_B64),
AMDGPU::EXEC).addReg(AMDGPU::EXEC);
OpenPOWER on IntegriCloud