mesa/src
Kenneth Graunke 308d4c7146 glsl: Change is_precision_statement to default_precision != none.
Currently, we store precision in ast_type_specifier, rather than
ast_type_qualifier.  This works because precision is the last qualifier,
and immediately adjacent to the type.

Default precision statements (such as "precision highp float") are
represented as ast_type_specifier objects, with a boolean to indicate
that it's a default precision statement rather than an ordinary type.

ast_type_specifier::precision will be moving to ast_type_qualifier soon,
in order to support arbitrary qualifier ordering.  However, we still
need to store a "this is a precision statement" flag /and/ the default
precision in ast_type_specifier.

This patch changes the boolean into a new field, default_precision.
If default_precision != ast_precision_none, it's a precision statement
with the specified precision.  Otherwise, it's an ordinary type.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-07-18 16:57:23 -07:00
..
egl egl: Drop configs with unknown or invalide __DRI_ATTRIB_RENDER_TYPE 2013-07-18 16:03:42 -07:00
gallium llvmpipe: clamp inputs for srgb render buffers 2013-07-18 19:04:20 +02:00
gbm
getopt
glsl glsl: Change is_precision_statement to default_precision != none. 2013-07-18 16:57:23 -07:00
glx glx: Enable floating-point fbconfig extensions 2013-07-18 16:03:42 -07:00
gtest
mapi glapi: Do not use backtrace on OpenBSD. 2013-07-16 09:00:38 -07:00
mesa i965: Combine URB code emission into a single group. 2013-07-18 16:57:21 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript