From 46f84ce20a79226787faf7e58b1b4cbe13ddc9bf Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 31 Oct 2022 11:39:58 -0700 Subject: [PATCH] freedreno/a6xx: Remove unused field Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_context.h | 3 --- src/gallium/drivers/freedreno/a6xx/fd6_query.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_context.h b/src/gallium/drivers/freedreno/a6xx/fd6_context.h index 122642e4e88..963afbc5b43 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_context.h +++ b/src/gallium/drivers/freedreno/a6xx/fd6_context.h @@ -79,9 +79,6 @@ struct fd6_context { /* Is there current VS driver-param state set? */ bool has_dp_state; - /* number of active samples-passed queries: */ - int samples_passed_queries; - /* cached stateobjs to avoid hashtable lookup when not dirty: */ const struct fd6_program_state *prog; diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_query.c b/src/gallium/drivers/freedreno/a6xx/fd6_query.c index 7796f1eb521..30472e2ec43 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_query.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_query.c @@ -71,8 +71,6 @@ occlusion_resume(struct fd_acc_query *aq, struct fd_batch *batch) OUT_RELOC(ring, query_sample(aq, start)); fd6_event_write(batch, ring, ZPASS_DONE, false); - - fd6_context(batch->ctx)->samples_passed_queries++; } static void @@ -115,8 +113,6 @@ occlusion_pause(struct fd_acc_query *aq, struct fd_batch *batch) assert_dt OUT_RELOC(epilogue, query_sample(aq, result)); /* srcA */ OUT_RELOC(epilogue, query_sample(aq, stop)); /* srcB */ OUT_RELOC(epilogue, query_sample(aq, start)); /* srcC */ - - fd6_context(batch->ctx)->samples_passed_queries--; } static void