etnaviv: fix some pm query issues
authorLucas Stach <l.stach@pengutronix.de>
Fri, 31 May 2019 16:05:12 +0000 (18:05 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 14 Jun 2019 07:06:28 +0000 (09:06 +0200)
commitab74699190e2264493706cac49414d5a28618d32
tree3d86524303a6e8986291c7103313c9612a067e3e
parent360b832c580da0cef2d78016c5c9d3606f038bc8
etnaviv: fix some pm query issues

The offsets to read the query results were off-by-one, which causes the
counters to report bogus increasing values.

Also the counter result is u32, so we need to initialize the query type
to reflect that.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_query_pm.c