st/mesa: Also enable GS when ESSLVersion > 320
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 10 Oct 2019 18:27:47 +0000 (11:27 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Thu, 17 Oct 2019 20:43:53 +0000 (13:43 -0700)
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
src/mesa/state_tracker/st_extensions.c

index 14f270e1447ee1a95074e23c38680b461d123135..12a1fabe62083d83705b0abfce6d6b0ad4d6c7d2 100644 (file)
@@ -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;