From: Kristian H. Kristensen Date: Thu, 10 Oct 2019 18:27:47 +0000 (-0700) Subject: st/mesa: Also enable GS when ESSLVersion > 320 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=946a1e206f266c06d73aef1269033ed90a0ae8ed;p=mesa.git st/mesa: Also enable GS when ESSLVersion > 320 Signed-off-by: Kristian H. Kristensen --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 14f270e1447..12a1fabe620 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1174,7 +1174,7 @@ void st_init_extensions(struct pipe_screen *screen, * invocations of a geometry shader. There is no separate cap for that, so * we check the GLSLVersion. */ - if (GLSLVersion >= 400 && + if ((GLSLVersion >= 400 || ESSLVersion >= 320) && screen->get_shader_param(screen, PIPE_SHADER_GEOMETRY, PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) { extensions->OES_geometry_shader = GL_TRUE;