[Mesa-dev] [PATCH 19/19] st/mesa: enable shader subroutine

Roland Scheidegger sroland at vmware.com
Thu Jul 9 06:27:57 PDT 2015


Should expose that only if hw has glsl 130 support?

Roland

Am 09.07.2015 um 09:17 schrieb Dave Airlie:
> From: Dave Airlie <airlied at redhat.com>
> 
> I'm not sure if we shouldn't enable this everywhere
> and rip out the API checks,
> 
> discuss,
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/state_tracker/st_extensions.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index b1057f3..3b828fa 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -598,6 +598,7 @@ void st_init_extensions(struct pipe_screen *screen,
>     extensions->ARB_half_float_vertex = GL_TRUE;
>     extensions->ARB_internalformat_query = GL_TRUE;
>     extensions->ARB_map_buffer_range = GL_TRUE;
> +   extensions->ARB_shader_subroutine = GL_TRUE;
>     extensions->ARB_texture_border_clamp = GL_TRUE; /* XXX temp */
>     extensions->ARB_texture_cube_map = GL_TRUE;
>     extensions->ARB_texture_env_combine = GL_TRUE;
> 



More information about the mesa-dev mailing list