summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-27 13:14:15 -0700
committerEric Anholt <[email protected]>2010-08-27 13:16:22 -0700
commit2776ad2641469d3bdb6f53b99fbd748efd277c51 (patch)
tree302f5a09e921825a80b8ac6120a6f44b259791a9
parent130368f910a806a12287c7561df7dddd0fc8be40 (diff)
i965: Add generate() handling for AND, OR, XOR.
10 more piglit tests pass.
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 76000609404..336dbd63f35 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1482,6 +1482,17 @@ fs_visitor::generate_code()
case BRW_OPCODE_MUL:
brw_MUL(p, dst, src[0], src[1]);
break;
+
+ case BRW_OPCODE_AND:
+ brw_AND(p, dst, src[0], src[1]);
+ break;
+ case BRW_OPCODE_OR:
+ brw_OR(p, dst, src[0], src[1]);
+ break;
+ case BRW_OPCODE_XOR:
+ brw_XOR(p, dst, src[0], src[1]);
+ break;
+
case BRW_OPCODE_CMP:
brw_CMP(p, dst, inst->conditional_mod, src[0], src[1]);
break;