iris: return max counter value for AMD_performance_monitor
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 15 Jun 2020 12:26:26 +0000 (14:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 08:40:32 +0000 (08:40 +0000)
commit00d3b13837c5edd299dc40cbd84505c8d1d5927f
tree9f623fdbb994bb011e276ccf36afa2f96ca93d21
parent2f4a112ec4a4c45bdc99634af113531ddd7914a2
iris: return max counter value for AMD_performance_monitor

glGetPerfMonitorCounterInfoAMD(..., ..., GL_COUNTER_RANGE_AMD, ...)
returned NAN (binary representation of uint64_t(-1) as float) as
a max value.

Fixes: 0fd4359733e6 ("iris/perf: implement routines to return counter info")
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5473>
src/gallium/drivers/iris/iris_monitor.c