mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 17:40:43 +00:00
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:
parent
9d9e197d74
commit
960e776f24
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user