From 936db9f8f3ae3cacf9036f42cdd0a1a0c5efae36 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 17 May 2023 11:55:10 +1000 Subject: [PATCH] llvmpipe: add query support for task/mesh shaders Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_query.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c index b06ba26..80ecdc0 100644 --- a/src/gallium/drivers/llvmpipe/lp_query.c +++ b/src/gallium/drivers/llvmpipe/lp_query.c @@ -346,7 +346,10 @@ llvmpipe_get_query_result_resource(struct pipe_context *pipe, value = pq->stats.cs_invocations; break; case PIPE_STAT_QUERY_TS_INVOCATIONS: + value = pq->stats.ts_invocations; + break; case PIPE_STAT_QUERY_MS_INVOCATIONS: + value = pq->stats.ms_invocations; break; } break; @@ -517,6 +520,10 @@ llvmpipe_end_query(struct pipe_context *pipe, struct pipe_query *q) llvmpipe->pipeline_statistics.hs_invocations - pq->stats.hs_invocations; pq->stats.ds_invocations = llvmpipe->pipeline_statistics.ds_invocations - pq->stats.ds_invocations; + pq->stats.ts_invocations = + llvmpipe->pipeline_statistics.ts_invocations - pq->stats.ts_invocations; + pq->stats.ms_invocations = + llvmpipe->pipeline_statistics.ms_invocations - pq->stats.ms_invocations; llvmpipe->active_statistics_queries--; break; case PIPE_QUERY_OCCLUSION_COUNTER: -- 2.7.4