summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-05-12 18:08:49 -0700
committerKenneth Graunke <[email protected]>2016-06-16 14:33:24 -0700
commit32b1c0b694bf660d48054a6e859deaa8f9556efe (patch)
treecea687af27bb2405c965c5ec858f3953060d54d2
parent6bec55a780b0e95445c6d77c6e35cc0c74290ac0 (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/intel_extensions.c4
1 files changed, 3 insertions, 1 deletions
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;