diff options
author | Matt Turner <[email protected]> | 2013-01-21 15:31:00 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-01-25 14:10:23 -0800 |
commit | 321555fb41d92ef61679ec3334e1cc24b5ab4c2d (patch) | |
tree | 7bccb46bc3443f9e48b6e3ee3a871d74ead21fd0 /src/glsl/ir_optimization.h | |
parent | 1ef674f215b10820b94af131b6158d84b89f4e4b (diff) |
glsl: Add support for lowering 4x8 pack/unpack operations
Lower them to arithmetic and bit manipulation expressions.
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index ac90b875a60..8f33018404e 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -54,6 +54,12 @@ enum lower_packing_builtins_op { LOWER_PACK_HALF_2x16_TO_SPLIT = 0x0040, LOWER_UNPACK_HALF_2x16_TO_SPLIT = 0x0080, + + LOWER_PACK_SNORM_4x8 = 0x0100, + LOWER_UNPACK_SNORM_4x8 = 0x0200, + + LOWER_PACK_UNORM_4x8 = 0x0400, + LOWER_UNPACK_UNORM_4x8 = 0x0800, }; bool do_common_optimization(exec_list *ir, bool linked, |