i965/gen7: Require kernel cmd_parser 5 for ARB_compute_shader
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 10 Feb 2016 17:56:23 +0000 (09:56 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 11 Feb 2016 18:49:13 +0000 (10:49 -0800)
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@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_extensions.c

index 889f7cbb5c1018d7dd6122e62fe28bf7117d68fd..a39693b68f7047275864a85dc46278021a04691b 100644 (file)
@@ -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)