[Mesa-dev] [PATCH] i965/compute: Allow ARB_compute_shader in compat profile

Iago Toral itoral at igalia.com
Fri Nov 4 07:01:49 UTC 2016


Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

On Thu, 2016-11-03 at 15:31 -0700, Jordan Justen wrote:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97447
> Cc: Evan Odabashian <eodabash at gmail.com>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_context.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c
> b/src/mesa/drivers/dri/i965/brw_context.c
> index 3085a98..d1a16ed 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -498,7 +498,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) ||


More information about the mesa-dev mailing list