Mesa (master): i965: perf: fix a counter return type on hsw

Lionel Landwerlin llandwerlin at kemper.freedesktop.org
Tue Mar 20 13:56:38 UTC 2018


Module: Mesa
Branch: master
Commit: e9a9e859486104ff9326cbc424480e53dc4e81ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e9a9e859486104ff9326cbc424480e53dc4e81ba

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Tue Mar 13 11:45:12 2018 +0000

i965: perf: fix a counter return type on hsw

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>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 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 ebc2bd7914..861cc1212a 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"




More information about the mesa-commit mailing list