zink: always set number of timestamp results to 1 for internal qbo

timestamp queries don't accumulate results

Fixes: 93190be1b9 ("zink: rewrite query internals")

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397>
This commit is contained in:
Mike Blumenkrantz 2022-01-07 09:41:44 -05:00 committed by Marge Bot
parent 8b46d83637
commit bf9ac4dfcd
1 changed files with 2 additions and 0 deletions

View File

@ -650,6 +650,8 @@ update_qbo(struct zink_context *ctx, struct zink_query *q)
if (!is_timestamp)
q->curr_qbo->num_results++;
else
q->curr_qbo->num_results = 1;
q->needs_update = false;
}