glsl: Record in gl_shader whether the shader uses GLSL ES.
authorPaul Berry <stereotype441@gmail.com>
Fri, 3 Aug 2012 00:47:49 +0000 (17:47 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 6 Dec 2012 20:13:22 +0000 (12:13 -0800)
commitc150e876b4bd8af1a0f0d7d8a76e9900045ac6be
tree8d9ddaded1810164245f0add5e2df91cb14dfb07
parent2b4aeddfb3cdae95d69e7f46eac87514f372f531
glsl: Record in gl_shader whether the shader uses GLSL ES.

Previously we recorded just the GLSL version, with the knowledge that
100 means GLSL 1.00 ES.  With the advent of GLSL 3.00 ES, this is
going to get more complex, and eventually will probably become
ambiguous (GLSL 4.00 already exists, and GLSL 4.00 ES is likely to be
created some day).

To reduce confusion, this patch simply records whether the shader is
GLSL ES as an explicit boolean.

[v2, idr]: s/IsEs(Shader|Prog)/IsES/  Suggested by Ken and Eric.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> [v1]
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Carl Worth <cworth@cworth.org>
src/glsl/main.cpp
src/mesa/main/mtypes.h