gallium: add task/mesh shader query types to stats interface.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>
This commit is contained in:
Dave Airlie
2023-05-29 13:27:02 +10:00
committed by Marge Bot
parent 97c48edac0
commit 0602108c38
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -345,6 +345,9 @@ llvmpipe_get_query_result_resource(struct pipe_context *pipe,
case PIPE_STAT_QUERY_CS_INVOCATIONS:
value = pq->stats.cs_invocations;
break;
case PIPE_STAT_QUERY_TS_INVOCATIONS:
case PIPE_STAT_QUERY_MS_INVOCATIONS:
break;
}
break;
default:
+5 -1
View File
@@ -627,6 +627,8 @@ enum pipe_statistics_query_index {
PIPE_STAT_QUERY_HS_INVOCATIONS,
PIPE_STAT_QUERY_DS_INVOCATIONS,
PIPE_STAT_QUERY_CS_INVOCATIONS,
PIPE_STAT_QUERY_TS_INVOCATIONS,
PIPE_STAT_QUERY_MS_INVOCATIONS,
};
/**
@@ -1236,8 +1238,10 @@ struct pipe_query_data_pipeline_statistics
uint64_t hs_invocations; /**< Num hull shader invocations. */
uint64_t ds_invocations; /**< Num domain shader invocations. */
uint64_t cs_invocations; /**< Num compute shader invocations. */
uint64_t ts_invocations; /**< Num task shader invocations. */
uint64_t ms_invocations; /**< Num mesh shader invocations. */
};
uint64_t counters[11];
uint64_t counters[13];
};
};