glsl: add a mechanism to allow #extension directives in the middle of shaders
authorMarek Olšák <marek.olsak@amd.com>
Tue, 8 Jul 2014 18:20:22 +0000 (20:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 17 Jul 2014 23:58:58 +0000 (01:58 +0200)
commitb0ff18bd3441ce7f28354686934440a92826eaf8
tree5e5828d8da6124a40b0a18d138b60905c6b5ecab
parent392c9f8dfe11034c44aeec72217e6f12dce20490
glsl: add a mechanism to allow #extension directives in the middle of shaders

This is needed to make Unigine Heaven 4.0 and Unigine Valley 1.0 work
with sample shading.

Also, if this is disabled, the error message at least makes sense now.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h
src/mesa/main/mtypes.h