mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
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 <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5533>
This commit is contained in:
parent
b9b943793b
commit
e40a77ea5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue