[Mesa-dev] [PATCH 2/2] st/mesa: enable OES_geometry_shader if GLSL 1.50 is supported

Ilia Mirkin imirkin at alum.mit.edu
Fri Jan 22 10:27:00 PST 2016


Actually I'm sorry, I just realized this patch is bogus.
OES_geometry_shader includes GS instancing, for which there isn't a
separate PIPE_CAP. Probably just make it conditional on
ARB_gpu_shader5 being enabled then.

First patch still makes sense though.

  -ilia

On Fri, Jan 22, 2016 at 1:21 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_extensions.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index 01ba015..af99f5b 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -764,6 +764,9 @@ void st_init_extensions(struct pipe_screen *screen,
>        extensions->AMD_vertex_shader_layer = GL_TRUE;
>     }
>
> +   if (consts->GLSLVersion >= 150)
> +      extensions->OES_geometry_shader = GL_TRUE;
> +
>     if (consts->GLSLVersion >= 130) {
>        consts->NativeIntegers = GL_TRUE;
>        consts->MaxClipPlanes = 8;
> --
> 2.4.10
>


More information about the mesa-dev mailing list