mesa: add support cursor support for relative path shader includes
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 2 Sep 2019 02:31:17 +0000 (12:31 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 20 Nov 2019 05:05:56 +0000 (05:05 +0000)
commit1201d3377ef8665797bf00839fd49a76e3e44101
tree0ec23d706882ba8f9fcced2bdf4f23675029f203
parentdb5197cec54e7926211acef2ff3b40344f01b4f9
mesa: add support cursor support for relative path shader includes

This will allow us to continue searching the current path for
relative shader includes.

From the ARB_shading_language_include spec:

   "If it is quoted with double quotes in a previously included
   string, then the first search point will be the tree location
   where the previously included string had been found."

Reviewed-by: Witold Baryluk <witold.baryluk@gmail.com>
src/compiler/glsl/glcpp/glcpp-parse.y
src/compiler/glsl/glcpp/pp_standalone_scaffolding.c
src/compiler/glsl/glcpp/pp_standalone_scaffolding.h
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h