i965: Get the gl_perf_query_object Id from the object

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171>
diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c
index 042c236..b402708 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_query.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_query.c
@@ -111,7 +111,7 @@
                         struct gl_perf_query_object *o);
 
 static void
-dump_perf_query_callback(GLuint id, void *query_void, void *brw_void)
+dump_perf_query_callback(UNUSED GLuint id, void *query_void, void *brw_void)
 {
    struct brw_context *ctx = brw_void;
    struct gen_perf_context *perf_ctx = ctx->perf_ctx;
@@ -120,7 +120,7 @@
    struct gen_perf_query_object *obj = brw_query->query;
 
    DBG("%4d: %-6s %-8s ",
-       id,
+       o->Id,
        o->Used ? "Dirty," : "New,",
        o->Active ? "Active," : (o->Ready ? "Ready," : "Pending,"));
    gen_perf_dump_query(perf_ctx, obj, &ctx->batch);