[Mesa-dev] [PATCH] i965/gen7: Require kernel cmd_parser 5 for ARB_compute_shader

Kenneth Graunke kenneth at whitecape.org
Wed Feb 10 21:41:48 UTC 2016


On Wednesday, February 10, 2016 1:25:23 PM PST Jordan Justen wrote:
> The indirect dispatch registers were whitelisted in command parser
> version 5. (Version 5 is available as of Linux 4.4)
> 
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/mesa/drivers/dri/i965/intel_extensions.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/
drivers/dri/i965/intel_extensions.c
> index 889f7cb..a39693b 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -346,7 +346,8 @@ intelInitExtensions(struct gl_context *ctx)
>           ctx->Extensions.ARB_transform_feedback3 = true;
>           ctx->Extensions.ARB_transform_feedback_instanced = true;
>  
> -         if (ctx->Const.MaxComputeWorkGroupSize[0] >= 1024)
> +         if ((brw->gen >= 8 || brw->intelScreen->cmd_parser_version >= 5) 
&&
> +             ctx->Const.MaxComputeWorkGroupSize[0] >= 1024)
>              ctx->Extensions.ARB_compute_shader = true;
>  
>           if (brw->intelScreen->cmd_parser_version >= 2)
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160210/f6560df7/attachment.sig>


More information about the mesa-dev mailing list