From: Sagar Ghuge Date: Wed, 25 Jul 2018 17:48:31 +0000 (-0700) Subject: i965: Expose EXT_base_instance extension in OpenGLES 3.0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29dd5dda9d189eebb2d14de71e3fe30722e72743;p=mesa.git i965: Expose EXT_base_instance extension in OpenGLES 3.0 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 Reviewed-by: Jordan Justen Reviewed-by: Anuj Phogat --- diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index f8373564783..9d119d0b4cb 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/dri/i965/intel_extensions.c @@ -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;