From: Jordan Justen Date: Thu, 3 Nov 2016 22:22:11 +0000 (-0700) Subject: i965/compute: Allow ARB_compute_shader in compat profile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bcb94bc2fc45fde806ad3fd062bf2ce97342359;p=mesa.git i965/compute: Allow ARB_compute_shader in compat profile Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97447 Signed-off-by: Jordan Justen Tested-by: Evan Odabashian Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index a01decdb2f1..e67b957a267 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -501,7 +501,7 @@ brw_initialize_context_constants(struct brw_context *brw) [MESA_SHADER_GEOMETRY] = brw->gen >= 6, [MESA_SHADER_FRAGMENT] = true, [MESA_SHADER_COMPUTE] = - (ctx->API == API_OPENGL_CORE && + ((ctx->API == API_OPENGL_COMPAT || ctx->API == API_OPENGL_CORE) && ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) || (ctx->API == API_OPENGLES2 && ctx->Const.MaxComputeWorkGroupSize[0] >= 128) ||