diff options
author | Matt Turner <[email protected]> | 2013-04-09 17:45:12 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-05-06 10:17:13 -0700 |
commit | 499d8c65457620c4879f6da302f0a9859ceaa2ee (patch) | |
tree | 5b44847b2ef50942f84a4d40beaffd9d046ca2f8 /src/glsl/ir.cpp | |
parent | 44d3287ecd8b81a30a51613cd578dd31a115d820 (diff) |
glsl: Add support for new bit built-ins in ARB_gpu_shader5.
v2: Move use of ir_binop_bfm and ir_triop_bfi to a later patch.
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 05b77da2c45..2c989c91678 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -419,7 +419,7 @@ ir_expression::get_num_operands(ir_expression_operation op) if (op <= ir_last_triop) return 3; - if (op == ir_quadop_vector) + if (op <= ir_last_quadop) return 4; assert(false); @@ -477,6 +477,10 @@ static const char *const operator_strs[] = { "unpackHalf2x16", "unpackHalf2x16_split_x", "unpackHalf2x16_split_y", + "bitfield_reverse", + "bit_count", + "find_msb", + "find_lsb", "noise", "+", "-", @@ -506,6 +510,8 @@ static const char *const operator_strs[] = { "packHalf2x16_split", "ubo_load", "lrp", + "bitfield_extract", + "bitfield_insert", "vector", }; |