i965: Expose EXT_base_instance extension in OpenGLES 3.0
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 25 Jul 2018 17:48:31 +0000 (10:48 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 27 Jul 2018 00:25:35 +0000 (17:25 -0700)
The extension requires at least OpenGL 3.0 and
OpenGL ES 3.0.

Fixes two ext_base_instance tests:

arb_base_instance-baseinstance-doesnt-affect-gl-instance-id_gles3
arb_base_instance-drawarrays_gles3

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_extensions.c

index f8373564783a99b68f99fc5b6c78391aac06a3ec..9d119d0b4cb3884197b7c8b290aba5b0d62b8c2c 100644 (file)
@@ -315,7 +315,7 @@ intelInitExtensions(struct gl_context *ctx)
    if (devinfo->gen >= 6)
       ctx->Extensions.INTEL_performance_query = true;
 
-   if (ctx->API == API_OPENGL_CORE)
+   if (ctx->API != API_OPENGL_COMPAT)
       ctx->Extensions.ARB_base_instance = true;
    if (ctx->API != API_OPENGL_CORE)
       ctx->Extensions.ARB_color_buffer_float = true;