mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 14:40:30 +01:00
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:
parent
202bc38ce9
commit
96e12ca7d7
2 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue