aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-03-26 15:37:01 +1000
committerDave Airlie <[email protected]>2020-04-15 14:26:00 +1000
commit96e12ca7d77df365a96336561e32813818268c19 (patch)
tree55fd228d4bdcacb7334e380a4219143fdf8aa6bf /src/gallium/drivers
parent202bc38ce9e3e52cea1448f22882d17c7e5e9a90 (diff)
llvmpipe: report tessellation shader statistics.
Fixes KHR-GL45.pipeline_statistics_query_tests_ARB.functional_tess_queries Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_query.c4
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_vbuf.c4
2 files changed, 8 insertions, 0 deletions
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;