mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
freedreno/a5xx: Don't forget to count our custom blits against queries.
Noticed when comparing the a5xx and a6xx paths. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8873>
This commit is contained in:
parent
881ce0f0a4
commit
659916d674
1 changed files with 7 additions and 0 deletions
|
|
@ -442,6 +442,8 @@ fd5_blitter_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
|
|||
|
||||
batch = fd_bc_alloc_batch(&ctx->screen->batch_cache, ctx, true);
|
||||
|
||||
fd_batch_update_queries(batch);
|
||||
|
||||
emit_setup(batch->draw);
|
||||
|
||||
if ((info->src.resource->target == PIPE_BUFFER) &&
|
||||
|
|
@ -462,6 +464,11 @@ fd5_blitter_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
|
|||
fd_batch_flush(batch);
|
||||
fd_batch_reference(&batch, NULL);
|
||||
|
||||
/* Acc query state will have been dirtied by our fd_batch_update_queries, so
|
||||
* the ctx->batch may need to turn its queries back on.
|
||||
*/
|
||||
ctx->update_active_queries = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue