From: Dave Airlie Date: Thu, 26 Mar 2020 05:37:01 +0000 (+1000) Subject: llvmpipe: report tessellation shader statistics. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96e12ca7d77df365a96336561e32813818268c19;p=mesa.git llvmpipe: report tessellation shader statistics. Fixes KHR-GL45.pipeline_statistics_query_tests_ARB.functional_tess_queries Reviewed-by: Roland Scheidegger Part-of: --- diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c index 75e3b47bfdb..c922caa8490 100644 --- a/src/gallium/drivers/llvmpipe/lp_query.c +++ b/src/gallium/drivers/llvmpipe/lp_query.c @@ -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: diff --git a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c index a400d79fb87..cfd7bdc6a45 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c @@ -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;