glsl: fix compat shaders in GLSL 1.40
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 11 Apr 2018 23:23:02 +0000 (09:23 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 12 Apr 2018 01:51:08 +0000 (11:51 +1000)
commitc7e3d31b0b5f22299a6bd72655502ce8427b40bf
tree4ac008f93165c77c6ccb0d43b8b312dc38748dc2
parentf3b14ca2e1cb4655300272a44f63c9474c48689e
glsl: fix compat shaders in GLSL 1.40

The compatibility and core tokens were not added until GLSL 1.50,
for GLSL 1.40 just assume all shaders built with a compat profile
are compat shaders.

Fixes rendering issues in Dawn of War II on radeonsi which has
enabled OpenGL 3.1 compat support.

Fixes: a0c8b49284ef "mesa: enable OpenGL 3.1 with ARB_compatibility"
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105807
src/compiler/glsl/glsl_parser_extras.cpp