[Mesa-dev] [PATCH] mesa/es3.1: Allow GL_COMPUTE_WORK_GROUP_SIZE for OpenGL ES 3.1

Tapani Pälli tapani.palli at intel.com
Sun Aug 23 23:08:24 PDT 2015


Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

(let's get rid of the '/es3.1' in commit title)

On 08/19/2015 04:30 PM, Marta Lofstedt wrote:
> From: Marta Lofstedt <marta.lofstedt at intel.com>
>
> According to OpenGL ES specification section 7.12,
> GL_COMPUTE_WORK_GROUP_SIZE, is supported by the
> glGetProgramiv function.
>
> Signed-off-by: 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 b227c17..0e0e0d6 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -756,7 +756,7 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname,
>         return;
>      case GL_COMPUTE_WORK_GROUP_SIZE: {
>         int i;
> -      if (!_mesa_is_desktop_gl(ctx) || !ctx->Extensions.ARB_compute_shader)
> +      if (!_mesa_has_compute_shaders(ctx))
>            break;
>         if (!shProg->LinkStatus) {
>            _mesa_error(ctx, GL_INVALID_OPERATION, "glGetProgramiv(program not "
>


More information about the mesa-dev mailing list