Re: [Mesa-dev] [PATCH] glsl: skip stringification in preprocessor if in unreachable branch

2018-08-29 Thread Ian Romanick
On 08/28/2018 06:36 PM, Timothy Arceri wrote: > This fixes compilation of some "No Mans Sky" shaders where the stringification > happens in branches intended for DX12. I was going to complain that this would make things like the following compile: #version 110 #ifdef this_is_undefined

[Mesa-dev] [PATCH] glsl: skip stringification in preprocessor if in unreachable branch

2018-08-28 Thread Timothy Arceri
This fixes compilation of some "No Mans Sky" shaders where the stringification happens in branches intended for DX12. --- Piglit tests: https://patchwork.freedesktop.org/series/48850/ src/compiler/glsl/glcpp/glcpp-lex.l | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git