mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
v3d/simulator: size counter_values array correctly on V3D 7.x
sim_state.perfcnt_total provides the total number of counters supported by the underlying simulated platform and is what we use when we create a perform to validate that the counters requested are valid, so we should use this. V3D_PERFCNT_NUM is a fixed enum value that is only valid for V3D 4.2 at present and is not sufficiently large for all the counters available in V3D 7.x. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28870>
This commit is contained in:
parent
0c0d62ba70
commit
6c73c9bb16
1 changed files with 1 additions and 1 deletions
|
|
@ -854,7 +854,7 @@ v3d_write_performance_query_result(int fd,
|
|||
{
|
||||
struct v3d_simulator_file *file = v3d_get_simulator_file_for_fd(fd);
|
||||
struct v3d_simulator_perfmon *perfmon;
|
||||
uint64_t counter_values[V3D_PERFCNT_NUM];
|
||||
uint64_t counter_values[sim_state.perfcnt_total];
|
||||
|
||||
for (uint32_t i = 0; i < copy->nperfmons; i++) {
|
||||
mtx_lock(&sim_state.submit_lock);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue