llvmpipe: report tessellation shader statistics.
authorDave Airlie <airlied@redhat.com>
Thu, 26 Mar 2020 05:37:01 +0000 (15:37 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Apr 2020 04:26:00 +0000 (14:26 +1000)
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>

src/gallium/drivers/llvmpipe/lp_query.c
src/gallium/drivers/llvmpipe/lp_setup_vbuf.c

index 75e3b47bfdbb5b25a65b62c9e2fd8cda35093652..c922caa8490874836da4c1c0663f987eb2552def 100644 (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:
index a400d79fb87105b3dd1ff0428de1ff385838332e..cfd7bdc6a45143b02b7e8cd4be06331894a40c9f 100644 (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;