glsl: Add lowering pass for GLSL ES 3.00 pack/unpack operations (v4)
authorChad Versace <chad.versace@linux.intel.com>
Mon, 19 Nov 2012 23:15:32 +0000 (15:15 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:10 +0000 (21:24 -0800)
commitb9f56ea923f97b0fef31c9430897e440ae20d03a
tree05af30bdcc780e0f2daedd45e4229fa8f3981a59
parent9d7931ddf06bd41f1b1a589503cd028ff00d134e
glsl: Add lowering pass for GLSL ES 3.00 pack/unpack operations (v4)

Lower them to arithmetic and bit manipulation expressions.

v2: Rewrite using ir_builder [for idr].
v3: Comment typos. [for mattst88]
v4: Fix arithmetic error in comments.
    Factor out a shift instruction.
    Don't heap allocate factory.instructions.
    [for paul]

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v2)
Reviewed-by: Matt Tuner <mattst88@gmail.com> (v3)
Reviewed-by: Paul Berry <stereotype441@gmail.com> (v4)
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/glsl/Makefile.sources
src/glsl/ir_optimization.h
src/glsl/lower_packing_builtins.cpp [new file with mode: 0644]