From 32b1c0b694bf660d48054a6e859deaa8f9556efe Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 12 May 2016 18:08:49 -0700 Subject: [PATCH] i965: Enable GL_ARB_ES3_1_compatibility on Gen8+ if CS are available. There are almost no tests in any test suite, but what little I've found seems to work. Ilia believes everything is in place. v2: Predicate the enable on ES 3.1 being available (Gen8+) and also ARB_compute_shader being available (requested by Ilia). Signed-off-by: Kenneth Graunke Reviewed-by: Ian Romanick Reviewed-by: Dave Airlie --- src/mesa/drivers/dri/i965/intel_extensions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 5be4787f74a..5e27d784a5d 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/dri/i965/intel_extensions.c @@ -354,8 +354,10 @@ intelInitExtensions(struct gl_context *ctx) ctx->Extensions.ARB_transform_feedback_instanced = true; if ((brw->gen >= 8 || brw->intelScreen->cmd_parser_version >= 5) && - ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) + ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) { ctx->Extensions.ARB_compute_shader = true; + ctx->Extensions.ARB_ES3_1_compatibility = brw->gen >= 8; + } if (brw->intelScreen->cmd_parser_version >= 2) brw->predicate.supported = true; -- 2.30.2