diff options
author | Tom Stellard <[email protected]> | 2012-04-30 16:11:27 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-04-30 16:43:34 -0400 |
commit | 4da1fcacf1d78c5fcae9e81eaf2a9d7c8117af3e (patch) | |
tree | b459dd3f9ee5007f842645a0fba0de3537cd4224 /src/gallium/drivers/radeon/AMDGPUUtil.cpp | |
parent | 77d2780cbc00d525b25c6e625b1faeb37e3ad6d0 (diff) |
r600g/llvm: Fix handling of MASK_WRITE instructions
We can't delete MASK_WRITE instructions from the program, because this
will cause instructions being masked by MASK_WRITE to be marked dead and
then deleted in the dce pass.
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUUtil.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUUtil.cpp b/src/gallium/drivers/radeon/AMDGPUUtil.cpp index a5045436ab4..6fb01b687f3 100644 --- a/src/gallium/drivers/radeon/AMDGPUUtil.cpp +++ b/src/gallium/drivers/radeon/AMDGPUUtil.cpp @@ -34,6 +34,7 @@ bool llvm::isPlaceHolderOpcode(unsigned opcode) case AMDIL::RETURN: case AMDIL::LOAD_INPUT: case AMDIL::LAST: + case AMDIL::MASK_WRITE: case AMDIL::RESERVE_REG: return true; } |