zink: assert precise queries are occlusion queries

this should always be the case

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12583>
This commit is contained in:
Mike Blumenkrantz 2021-08-10 10:17:39 -04:00 committed by Marge Bot
parent 9d9e197d74
commit 960e776f24

View File

@ -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;