glsl: Expose built-in packing functions under GLSL 4.2.
authorMatt Turner <mattst88@gmail.com>
Thu, 12 Mar 2015 01:14:28 +0000 (18:14 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 13 Mar 2015 17:42:38 +0000 (10:42 -0700)
commit8d3aa5926b73c67c7dbd4477b7177aaa00c533e5
tree3a25670eb928400c68dab9b54ee69dc54c1837df
parentdac2e7deaae2540645a6b485c7d1f47195689116
glsl: Expose built-in packing functions under GLSL 4.2.

ARB_shading_language_packing is part of GLSL 4.2, not 4.0 as I
mistakenly believed. The following functions are available only with
ARB_shading_language_packing, GLSL 4.2 (not GLSL 4.0), or ES 3.0:

   - packSnorm2x16
   - unpackSnorm2x16
   - packHalf2x16
   - unpackHalf2x16

Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/glsl/builtin_functions.cpp