freedreno/query/acc: Set needs_flush
Somehow this was missed, but when we emit a query start/stop we need have something that will need to be flushed in the batch. Detected due to TC assert, but this had the potential to cause problems in the non-TC case as well. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10599>
This commit is contained in:
parent
a9c9a9938d
commit
71cff8171c
|
@ -75,6 +75,7 @@ fd_acc_query_pause(struct fd_acc_query *aq) assert_dt
|
|||
if (!aq->batch)
|
||||
return;
|
||||
|
||||
fd_batch_needs_flush(aq->batch);
|
||||
p->pause(aq, aq->batch);
|
||||
aq->batch = NULL;
|
||||
}
|
||||
|
@ -85,6 +86,7 @@ fd_acc_query_resume(struct fd_acc_query *aq, struct fd_batch *batch) assert_dt
|
|||
const struct fd_acc_sample_provider *p = aq->provider;
|
||||
|
||||
aq->batch = batch;
|
||||
fd_batch_needs_flush(aq->batch);
|
||||
p->resume(aq, aq->batch);
|
||||
|
||||
fd_screen_lock(batch->ctx->screen);
|
||||
|
|
Loading…
Reference in New Issue