diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2019-06-05 11:49:06 +0300 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2019-06-21 19:43:14 +0000 |
commit | 5375846e8d1ea643c13d5809dba55c68f6a9440b (patch) | |
tree | e41601a7e2d1c4ca396496e954a44a14bfedc2b8 | |
parent | 4e3f82cde4dc0734c53d10dab211c5dd08fe9b01 (diff) |
intel/perf: fix EuThreadsCount value in performance equations
EuThreadsCount is supposed to be the number of threads per EU, not the
total number of threads in the whole device.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 1fc7b951278428 ("i965: Add Gen8+ INTEL_performance_query support")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 0430c6d18a90549b1dd40ea29a0c28d1a8e3a47d)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_performance_query.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c index 10e3d024f17..c10108f38f3 100644 --- a/src/mesa/drivers/dri/i965/brw_performance_query.c +++ b/src/mesa/drivers/dri/i965/brw_performance_query.c @@ -1990,8 +1990,7 @@ compute_topology_builtins(struct brw_context *brw) for (int i = 0; i < sizeof(devinfo->eu_masks); i++) brw->perfquery.sys_vars.n_eus += util_bitcount(devinfo->eu_masks[i]); - brw->perfquery.sys_vars.eu_threads_count = - brw->perfquery.sys_vars.n_eus * devinfo->num_thread_per_eu; + brw->perfquery.sys_vars.eu_threads_count = devinfo->num_thread_per_eu; /* At the moment the subslice mask builtin has groups of 3bits for each * slice. |