Mesa (master): glsl: Set default language version in mesa_glsl_parse_state constructor.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Sep 8 00:46:09 UTC 2010


Module: Mesa
Branch: master
Commit: 814c89abdbcd5b841b98746af921796df0362238
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=814c89abdbcd5b841b98746af921796df0362238

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Sep  5 00:31:28 2010 -0700

glsl: Set default language version in mesa_glsl_parse_state constructor.

This should make it easier to change the default version based on the
API (say, version 1.00 for OpenGL ES).

Also, synchronize the symbol table's version with the parse state's
version just before doing AST-to-HIR.  This way, it will be set when
it matters, but the main initialization code doesn't have to care about
the symbol table.

---

 src/glsl/ast_to_hir.cpp         |    2 +
 src/glsl/glsl_parser.cpp        |  497 +++++++++++++++++++--------------------
 src/glsl/glsl_parser.ypp        |    7 +-
 src/glsl/glsl_parser_extras.cpp |    3 +
 4 files changed, 249 insertions(+), 260 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=814c89abdbcd5b841b98746af921796df0362238



More information about the mesa-commit mailing list