i965/compute: Allow ARB_compute_shader in compat profile
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 3 Nov 2016 22:22:11 +0000 (15:22 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 9 Nov 2016 16:23:33 +0000 (08:23 -0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97447
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Evan Odabashian <eodabash@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_context.c

index a01decdb2f16e9853112e4f394c1180e96d12d87..e67b957a267112ef65693510546943961fa42db2 100644 (file)
@@ -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) ||