[Mesa-dev] [PATCH 1/2] i965: perf: fix a counter return type on hsw

Lionel Landwerlin lionel.g.landwerlin at intel.com
Fri Mar 16 15:03:58 UTC 2018


The equation code computes a float (percentage) yet the return type
was an uint64_t.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 src/mesa/drivers/dri/i965/brw_oa_hsw.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_oa_hsw.xml b/src/mesa/drivers/dri/i965/brw_oa_hsw.xml
index ebc2bd79143..861cc1212a7 100644
--- a/src/mesa/drivers/dri/i965/brw_oa_hsw.xml
+++ b/src/mesa/drivers/dri/i965/brw_oa_hsw.xml
@@ -1669,7 +1669,7 @@
              />
     <counter name="VS EU Stall"
              description="The percentage of time in which vertex shaders were stalled on the EUs."
-             data_type="uint64"
+             data_type="float"
              max_equation="100"
              equation="A 3 READ $EuCoresTotalCount UDIV 100 UMUL $GpuCoreClocks FDIV"
              underscore_name="vs_eu_stall"
-- 
2.16.2



More information about the mesa-dev mailing list