gallium/radeon: add new HUD queries for monitoring the CP
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 11:52:56 +0000 (12:52 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 13:37:00 +0000 (14:37 +0100)
commite2c15ea0925542bd3557a5b5872a679ebbcefacd
treef14bc8ba259e1e8f456d5ec1c8d9b105c66e3f01
parent0e04a078c5545d536173e50e32a0604b9abb42bc
gallium/radeon: add new HUD queries for monitoring the CP

There are even more counters in the CP_STAT register but I think
these ones are enough for now.

v2: only read (and expose) CP_STAT on VI+

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_gpu_load.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeon/r600_query.h