Mesa (master): i965: Add generate() handling for AND, OR, XOR.

Eric Anholt anholt at kemper.freedesktop.org
Fri Aug 27 13:20:53 PDT 2010


Module: Mesa
Branch: master
Commit: 2776ad2641469d3bdb6f53b99fbd748efd277c51
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2776ad2641469d3bdb6f53b99fbd748efd277c51

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 27 13:14:15 2010 -0700

i965: Add generate() handling for AND, OR, XOR.

10 more piglit tests pass.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |   11 +++++++++++
 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 7600060..336dbd6 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;



More information about the mesa-commit mailing list