From: Jordan Justen Date: Tue, 15 Dec 2015 23:51:25 +0000 (-0800) Subject: i965: Enable compute shaders in more cases for OpenGLES 3.1 X-Git-Tag: upstream/17.1.0~13632 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b5d442661c9ea7d0606fe6403fd6a45b799e50d;p=platform%2Fupstream%2Fmesa.git i965: Enable compute shaders in more cases for OpenGLES 3.1 Previously we were checking the desktop OpenGL ARB_compute_shader requirements, but for OpenGLES 3.1, the requirements are lower. Signed-off-by: Jordan Justen Reviewed-by: Marta Lofstedt --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index de4bc2c..005c323 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -379,7 +379,10 @@ brw_initialize_context_constants(struct brw_context *brw) [MESA_SHADER_GEOMETRY] = brw->gen >= 6, [MESA_SHADER_FRAGMENT] = true, [MESA_SHADER_COMPUTE] = - (ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) || + (ctx->API == API_OPENGL_CORE && + ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) || + (ctx->API == API_OPENGLES2 && + ctx->Const.MaxComputeWorkGroupSize[0] >= 128) || _mesa_extension_override_enables.ARB_compute_shader, };