llvmpipe: report tessellation shader statistics.

Fixes KHR-GL45.pipeline_statistics_query_tests_ARB.functional_tess_queries

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
This commit is contained in:
Dave Airlie 2020-03-26 15:37:01 +10:00
parent 202bc38ce9
commit 96e12ca7d7
2 changed files with 8 additions and 0 deletions

View file

@ -447,6 +447,10 @@ llvmpipe_end_query(struct pipe_context *pipe, struct pipe_query *q)
llvmpipe->pipeline_statistics.ps_invocations - pq->stats.ps_invocations;
pq->stats.cs_invocations =
llvmpipe->pipeline_statistics.cs_invocations - pq->stats.cs_invocations;
pq->stats.hs_invocations =
llvmpipe->pipeline_statistics.hs_invocations - pq->stats.hs_invocations;
pq->stats.ds_invocations =
llvmpipe->pipeline_statistics.ds_invocations - pq->stats.ds_invocations;
llvmpipe->active_statistics_queries--;
break;
case PIPE_QUERY_OCCLUSION_COUNTER:

View file

@ -571,6 +571,10 @@ lp_setup_pipeline_statistics(
stats->gs_invocations;
llvmpipe->pipeline_statistics.gs_primitives +=
stats->gs_primitives;
llvmpipe->pipeline_statistics.hs_invocations +=
stats->hs_invocations;
llvmpipe->pipeline_statistics.ds_invocations +=
stats->ds_invocations;
if (!setup->rasterizer_discard) {
llvmpipe->pipeline_statistics.c_invocations +=
stats->c_invocations;