diff options
author | Mike Blumenkrantz <[email protected]> | 2020-07-09 15:59:29 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-13 20:59:07 +0000 |
commit | e40a77ea5d0ba77f44e9266b43c069d921aec30d (patch) | |
tree | 8b3c6083d0597f00c0ae94e4b8373b6104d8c10d /src | |
parent | b9b943793b017e3da8239117e70d020c17480d3f (diff) |
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 [email protected]@gs-emits-too-few-verts
Reviewed-by: Erik Faye-Lund <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5533>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/zink/zink_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index bf046bbb0e9..0d0c4fe53d0 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) { |