zink: set predicate_dirty on query creation

ensure this is set when it needs to be

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21581>
This commit is contained in:
Mike Blumenkrantz 2023-02-28 06:29:54 -05:00 committed by Marge Bot
parent 5374605ea9
commit b31c414e28

View file

@ -526,6 +526,7 @@ zink_create_query(struct pipe_context *pctx,
struct zink_batch *batch = &zink_context(pctx)->batch;
batch->has_work = true;
query->needs_reset = true;
query->predicate_dirty = true;
if (query->type == PIPE_QUERY_TIMESTAMP) {
query->active = true;
/* defer pool reset until end_query since we're guaranteed to be threadsafe then */