glsl: Add default precision qualifiers to the symbol table
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 26 Feb 2015 11:15:17 +0000 (12:15 +0100)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 12 Nov 2015 07:50:13 +0000 (09:50 +0200)
commite3082fb2732c2af836875201b8d7f49e864c8e4e
tree73255f76c66c1d3bae47630d7591f09b5c3793e2
parentd6a61673543deeebac773801cbd717b7a342626e
glsl: Add default precision qualifiers to the symbol table

The GLSL ES spec specifies default precision qualifiers for certain types,
so populate the symbol table with these.

Notice that the desktop GLSL spec also indicates defaults for some types
but this is not really useful since precision qualifiers are completely
ignored in desktop GLSL.

v2: simplify and add samplerExternalOES, specified by
    OES_EGL_image_external (Tapani)

v3: add atomic_uint (reported missing by Marta)

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/glsl_parser.yy