R600/SI: Only use S_WQM_B64 in pixel shaders
authorTom Stellard <thomas.stellard@amd.com>
Mon, 10 Feb 2014 16:58:27 +0000 (16:58 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 10 Feb 2014 16:58:27 +0000 (16:58 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201096 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/SILowerControlFlow.cpp

index 8c12e1357f03defe180b19706808d9afb44c965d..42cc4e989a3954883785c9269a6088c6301bb95a 100644 (file)
@@ -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);