mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
freedreno: Handle compute queries
Compute stage can have queries too. We need to handle that. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>
This commit is contained in:
parent
d52e9097e1
commit
8192498530
1 changed files with 9 additions and 0 deletions
|
|
@ -571,6 +571,11 @@ fd_launch_grid(struct pipe_context *pctx,
|
|||
fd_batch_reference(&save_batch, ctx->batch);
|
||||
fd_batch_reference(&ctx->batch, batch);
|
||||
|
||||
/* NOTE: needs to be before resource_written(batch->query_buf), otherwise
|
||||
* query_buf may not be created yet.
|
||||
*/
|
||||
fd_batch_update_queries(batch);
|
||||
|
||||
fd_screen_lock(ctx->screen);
|
||||
|
||||
/* Mark SSBOs */
|
||||
|
|
@ -605,6 +610,10 @@ fd_launch_grid(struct pipe_context *pctx,
|
|||
if (info->indirect)
|
||||
resource_read(batch, info->indirect);
|
||||
|
||||
list_for_each_entry (struct fd_acc_query, aq, &ctx->acc_active_queries, node) {
|
||||
resource_written(batch, aq->prsc);
|
||||
}
|
||||
|
||||
/* If the saved batch has been flushed during the resource tracking,
|
||||
* don't re-install it:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue