i965: Lower the GLSL ES 3.00 pack/unpack operations (v2)
authorChad Versace <chad.versace@linux.intel.com>
Sat, 1 Dec 2012 00:49:21 +0000 (16:49 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:10 +0000 (21:24 -0800)
commitee0ed52d69b3c3c10e344acae7ca901b4e9a03fa
tree6fa93a87c1502ab40a947f18feef61f7f71ac0aa
parentb9f56ea923f97b0fef31c9430897e440ae20d03a
i965: Lower the GLSL ES 3.00 pack/unpack operations (v2)

On gen < 7, we fully lower all operations to arithmetic and bitwise
operations.

On gen >= 7, we fully lower the Snorm2x16 and Unorm2x16 operations, and
partially lower the Half2x16 operations.

v2:
  - Comment that scalarization is needed only for SOA code [for idr].
  - Replace switch-statement with if-statement [for idr].
  - Remove misplaced hunk from previous patch [found by idr].

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Tuner <mattst88@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_shader.cpp