diff options
author | Kenneth Graunke <[email protected]> | 2010-10-18 17:28:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-10-27 13:55:30 -0700 |
commit | cbc966b57bdb61f5bc158352a9c8dd57bf31b81e (patch) | |
tree | 680c848bac3870cc90aacd8e1de7fd59407e93dd /src | |
parent | 9e3641bd0d739a87a6998300ca29580cb557f380 (diff) |
i965: Add bit operation support to the fragment shader backend.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index e322ee4f118..2ed59d3f5d4 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -923,12 +923,21 @@ fs_visitor::visit(ir_expression *ir) break; case ir_unop_bit_not: - case ir_unop_u2f: - case ir_binop_lshift: - case ir_binop_rshift: + inst = emit(fs_inst(BRW_OPCODE_NOT, this->result, op[0])); + break; case ir_binop_bit_and: + inst = emit(fs_inst(BRW_OPCODE_AND, this->result, op[0], op[1])); + break; case ir_binop_bit_xor: + inst = emit(fs_inst(BRW_OPCODE_XOR, this->result, op[0], op[1])); + break; case ir_binop_bit_or: + inst = emit(fs_inst(BRW_OPCODE_OR, this->result, op[0], op[1])); + break; + + case ir_unop_u2f: + case ir_binop_lshift: + case ir_binop_rshift: assert(!"GLSL 1.30 features unsupported"); break; } |