freedreno/a6xx: Remove unused field
authorRob Clark <robdclark@chromium.org>
Mon, 31 Oct 2022 18:39:58 +0000 (11:39 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Nov 2022 15:42:14 +0000 (15:42 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19400>

src/gallium/drivers/freedreno/a6xx/fd6_context.h
src/gallium/drivers/freedreno/a6xx/fd6_query.c

index 122642e..963afbc 100644 (file)
@@ -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;
 
index 7796f1e..30472e2 100644 (file)
@@ -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