gallium/radeon: add new GPU-sdma-busy HUD query
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 11:52:24 +0000 (12:52 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 13:37:00 +0000 (14:37 +0100)
commit0e04a078c5545d536173e50e32a0604b9abb42bc
tree192b79827becd8b7f9d284898c9f03bab1e47aa2
parentb0f7ddef4fcea8f0be7911a06b77be9eabba5c8f
gallium/radeon: add new GPU-sdma-busy HUD query

For simplicity, GPU-sdma-busy will return 0 on previous gens.

v2: only read SRBM_STATUS2 on Evergreen+

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