diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index 4f1e9ddec37..8f9b1236dab 100644 --- a/src/gallium/drivers/zink/zink_query.c +++ b/src/gallium/drivers/zink/zink_query.c @@ -289,6 +289,8 @@ zink_create_query(struct pipe_context *pctx, if (query->vkqtype == -1) return NULL; + assert(!query->precise || query->vkqtype == VK_QUERY_TYPE_OCCLUSION); + query->curr_query = 0; pool_create.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO;