st/mesa: fix reporting of float perf counters max value
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 15 Jun 2020 11:48:43 +0000 (13:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 08:40:32 +0000 (08:40 +0000)
commit2f4a112ec4a4c45bdc99634af113531ddd7914a2
tree6600b997327d5f8aefd8bd24ba360a76ee4af5d3
parent2550531dd6b24ad62a95c828e05dc8e42e9d0d85
st/mesa: fix reporting of float perf counters max value

Some Piglit tests (rightfully) fail because of min >= max when exposed
to perf counters that do not explicitly define their max value.

Failing tests:
spec/amd_performance_monitor/api/test_counter_info
spec/amd_performance_monitor/vc4/test_counter_info

u32/u64 changes are no-ops.

Fixes: 4cd1cfb9831d ("st/mesa: implement GL_AMD_performance_monitor")
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5473>
src/mesa/state_tracker/st_cb_perfmon.c