mesa/src
Kenneth Graunke ecaf9259e9 glsl: Don't lose precision qualifiers when encountering "centroid".
Mesa fails to retain the precision qualifier when parsing:

   #version 300 es
   centroid in mediump vec2 v;

Consider how the parser's type_qualifier production is applied.
First, the precision_qualifier rule creates a new ast_type_qualifier:

    <precision: mediump>

Then the storage_qualifier rule creates a second one:

    <flags: in>

and calls merge_qualifier() to fold in any previous qualifications,
returning:

    <flags: in, precision: mediump>

Finally, the auxiliary_storage_qualifier creates one for "centroid":

    <flags: centroid>

it then does $$ = $1 and $$.flags |= $2.flags, resulting in:

    <flags: centroid, in>

Since precision isn't stored in the flags bitfield, it is lost.  We need
to instead call merge_qualifier to combine all the fields.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reported-by: Kevin Rogovin <kevin.rogovin@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 2062f40d81)
2014-02-07 17:10:10 -08:00
..
egl build: Share the all-local rule for linking libraries into the build dir 2014-01-29 12:58:13 -08:00
gallium nv50: only over-allocate by a page for code 2014-02-07 17:10:10 -08:00
gbm build: Share the all-local rule for linking libraries into the build dir 2014-01-29 12:58:13 -08:00
getopt
glsl glsl: Don't lose precision qualifiers when encountering "centroid". 2014-02-07 17:10:10 -08:00
glx dri3: Track current Present swap mode and adjust buffer counts 2014-01-30 17:29:33 -08:00
gtest gtest: enable subdir-objects to prevent automake warnings 2013-11-16 14:01:27 +00:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
loader dri: Add a useful error message if someone's packages missed libudev deps. 2014-02-01 10:09:11 -08:00
mapi mesa: move glGenerateMipmap() code into new genmipmap.c file 2014-02-02 06:52:37 -07:00
mesa st/mesa: avoid sw fallback for getting/decompressing textures 2014-02-07 17:10:10 -08:00
Makefile.am loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00
SConscript loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00