[Mesa-dev] [PATCH 2/5] main: Allow compute shaders to be compiled with OpenGLES 3.1

Lofstedt, Marta marta.lofstedt at intel.com
Wed Dec 16 01:04:57 PST 2015


Reviewed-by: Marta Lofstedt <marta.lofstedt at intel.com>


> -----Original Message-----
> From: Justen, Jordan L
> Sent: Wednesday, December 16, 2015 1:08 AM
> To: mesa-dev at lists.freedesktop.org
> Cc: Justen, Jordan L; Lofstedt, Marta
> Subject: [PATCH 2/5] main: Allow compute shaders to be compiled with
> OpenGLES 3.1
> 
> Previous OpenGLES 3.1 testing had been done when ARB_compute_shader
> was overridden to enabled.
> 
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Marta Lofstedt <marta.lofstedt at intel.com>
> ---
>  src/mesa/main/shaderapi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index
> a732d83..e258ad9 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -208,7 +208,7 @@ _mesa_validate_shader_target(const struct
> gl_context *ctx, GLenum type)
>     case GL_TESS_EVALUATION_SHADER:
>        return ctx == NULL || _mesa_has_tessellation(ctx);
>     case GL_COMPUTE_SHADER:
> -      return ctx == NULL || ctx->Extensions.ARB_compute_shader;
> +      return ctx == NULL || _mesa_has_compute_shaders(ctx);
>     default:
>        return false;
>     }
> --
> 2.6.2



More information about the mesa-dev mailing list