mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
zink: don't try to sync previous timestamp query qbo values
this makes no sense, so don't explode the qbo by trying Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12578>
This commit is contained in:
parent
4421180fe3
commit
0f40ac286b
1 changed files with 9 additions and 7 deletions
|
|
@ -589,13 +589,15 @@ reset_pool(struct zink_context *ctx, struct zink_batch *batch, struct zink_query
|
|||
memset(q->have_xfb, 0, sizeof(q->have_xfb));
|
||||
q->last_start = q->curr_query = 0;
|
||||
q->needs_reset = false;
|
||||
/* create new qbo for non-timestamp queries */
|
||||
if (q->type != PIPE_QUERY_TIMESTAMP) {
|
||||
if (qbo_append(ctx->base.screen, q))
|
||||
reset_qbo(q);
|
||||
else
|
||||
debug_printf("zink: qbo alloc failed on reset!");
|
||||
}
|
||||
/* create new qbo for non-timestamp queries:
|
||||
* timestamp queries should never need more than 2 entries in the qbo
|
||||
*/
|
||||
if (q->type == PIPE_QUERY_TIMESTAMP)
|
||||
return;
|
||||
if (qbo_append(ctx->base.screen, q))
|
||||
reset_qbo(q);
|
||||
else
|
||||
debug_printf("zink: qbo alloc failed on reset!");
|
||||
if (id_offset)
|
||||
qbo_sync_from_prev(ctx, q, id_offset, last_start);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue