summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDGPUUtil.cpp
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2012-05-07 13:10:09 +0400
committerVadim Girlin <[email protected]>2012-05-08 01:18:23 +0400
commite98e209528b2c7acb721a84a7cfda925aeed4d57 (patch)
tree115e556f0db0150eec98df18c45ce1d320674e27 /src/gallium/drivers/radeon/AMDGPUUtil.cpp
parent996fa375ec275ab5053855dc95f9cc4f301d596c (diff)
radeon/llvm: add support for CUBE ALU instruction
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUUtil.cpp')
-rw-r--r--src/gallium/drivers/radeon/AMDGPUUtil.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUUtil.cpp b/src/gallium/drivers/radeon/AMDGPUUtil.cpp
index d6f72b19050..2d15e21ce36 100644
--- a/src/gallium/drivers/radeon/AMDGPUUtil.cpp
+++ b/src/gallium/drivers/radeon/AMDGPUUtil.cpp
@@ -98,6 +98,17 @@ bool llvm::isReductionOp(unsigned opcode)
}
}
+bool llvm::isCubeOp(unsigned opcode)
+{
+ switch(opcode) {
+ default: return false;
+ case AMDIL::CUBE_r600:
+ case AMDIL::CUBE_eg:
+ return true;
+ }
+}
+
+
bool llvm::isFCOp(unsigned opcode)
{
switch(opcode) {