diff options
author | Dave Airlie <[email protected]> | 2020-04-10 14:35:24 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-04-15 14:26:17 +1000 |
commit | 80fa8304c807b2ef28bf9e37bdd7afadfde216ce (patch) | |
tree | 2bdff8fcfb4b2ff556a12fbb04f0b9a66a2310f5 /src | |
parent | 335827eade38d6f0647d9a01af2a1a5a1b59dd2d (diff) |
draw: fix tessellation stats query
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c index f9db2928582..d403e81c224 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c @@ -596,8 +596,11 @@ llvm_pipeline_generic(struct draw_pt_middle_end *middle, if (draw->collect_statistics) { draw->statistics.ia_vertices += prim_info->count; - draw->statistics.ia_primitives += - u_decomposed_prims_for_vertices(prim_info->prim, prim_info->count); + if (prim_info->prim == PIPE_PRIM_PATCHES) + draw->statistics.ia_primitives += prim_info->count / draw->pt.vertices_per_patch; + else + draw->statistics.ia_primitives += + u_decomposed_prims_for_vertices(prim_info->prim, prim_info->count); draw->statistics.vs_invocations += fetch_info->count; } |