i965: Enable INTEL_performance_query for Gen5+.
authorPetri Latvala <petri.latvala@intel.com>
Wed, 23 Apr 2014 08:08:54 +0000 (11:08 +0300)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 May 2014 17:07:04 +0000 (10:07 -0700)
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/intel_extensions.c

index 4a2a711636e6e9571949c284d937c8759b331ee7..ade86a5d19065104669d2ddd48f149ea5397b09d 100644 (file)
@@ -310,8 +310,10 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_stencil_texturing = true;
    }
 
-   if (brw->gen == 5 || can_write_oacontrol(brw))
+   if (brw->gen == 5 || can_write_oacontrol(brw)) {
       ctx->Extensions.AMD_performance_monitor = true;
+      ctx->Extensions.INTEL_performance_query = true;
+   }
 
    if (ctx->API == API_OPENGL_CORE)
       ctx->Extensions.ARB_base_instance = true;