summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.cpp
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2012-11-19 11:14:24 -0800
committerChad Versace <[email protected]>2013-01-24 21:24:10 -0800
commit542c7a30224211de8d7df5025a5308559f33197b (patch)
tree6e5f07ef557a33a31c6db450041464ebc407f897 /src/glsl/ir_builder.cpp
parent529b6d1f3d80f5651bdb477c20fdbb6f6a4d9746 (diff)
glsl: Evaluate constant GLSL ES 3.00 pack/unpack expressions (v3)
That is, evaluate constant expressions of the following functions: packSnorm2x16 unpackSnorm2x16 packUnorm2x16 unpackUnorm2x16 packHalf2x16 unpackHalf2x16 v2: Reuse _mesa_pack_float_to_half and its inverse to evaluate pack/unpackHalf2x16. [for idr] v3: Whitespace fixes. [for mattst88] Don't cast neg floats directly to uint16; use an intermediate cast to int16. [for paul] Reviewed-by: Ian Romanick <[email protected]> (v2) Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Matt Tuner <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.cpp')
0 files changed, 0 insertions, 0 deletions