Reviewed-by: Marek Olšák <marek.ol...@amd.com> Marek
On Wed, Apr 11, 2018 at 7:54 PM, Timothy Arceri <tarc...@itsqueeze.com> wrote: > On 12/04/18 09:29, Timothy Arceri wrote: > >> The compatibility and core tokens were not added until GLSL 1.50, >> for GLSL 1.40 just assume all shader 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. >> > > oh and I've added this locally: > > Fixes: a0c8b49284ef "mesa: enable OpenGL 3.1 with ARB_compatibility" > > > >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105807 >> --- >> src/compiler/glsl/glsl_parser_extras.cpp | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/src/compiler/glsl/glsl_parser_extras.cpp >> b/src/compiler/glsl/glsl_parser_extras.cpp >> index 0cc57f5a887..5dd362b3e38 100644 >> --- a/src/compiler/glsl/glsl_parser_extras.cpp >> +++ b/src/compiler/glsl/glsl_parser_extras.cpp >> @@ -429,6 +429,8 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE >> *locp, int version, >> this->language_version = version; >> this->compat_shader = compat_token_present || >> + (this->ctx->API == API_OPENGL_COMPAT && >> + this->language_version == 140) || >> (!this->es_shader && this->language_version < >> 140); >> bool supported = false; >> >> _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev >
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev