From e40a77ea5d0ba77f44e9266b43c069d921aec30d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 9 Jul 2020 15:59:29 -0400 Subject: [PATCH] zink: use right vulkan type for GL_PRIMITIVES_GENERATED queries VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT includes primitives which won't get drawn due to e.g., not enough vertices emitted by geometry shader fixes spec@glsl-1.50@gs-emits-too-few-verts Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index bf046bb..0d0c4fe 100644 --- a/src/gallium/drivers/zink/zink_query.c +++ b/src/gallium/drivers/zink/zink_query.c @@ -88,7 +88,7 @@ zink_create_query(struct pipe_context *pctx, pool_create.queryType = query->vkqtype; pool_create.queryCount = query->num_queries; if (query_type == PIPE_QUERY_PRIMITIVES_GENERATED) - pool_create.pipelineStatistics = VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT; + pool_create.pipelineStatistics = VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT; VkResult status = vkCreateQueryPool(screen->dev, &pool_create, NULL, &query->query_pool); if (status != VK_SUCCESS) { -- 2.7.4