summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeon/r600_pipe_common.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-01-15 23:59:00 +0100
committerMarek Olšák <marek.olsak@amd.com>2017-01-16 15:35:30 +0100
commit0d9a4efce9c7503544fb828b225ea32a11bc799b (patch)
treeb7769b78d39f42bc08e425988a79ae9150c9cf40 /src/gallium/drivers/radeon/r600_pipe_common.h
parentaa0de724c7744d91e259ed6911ab8d1580d2f7da (diff)
gallium/radeon: add GPU-shaders-busy HUD query
It should be close to the GPU load, but it can be much lower if something is stalling shader execution (e.g. CP DMA). Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_pipe_common.h')
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h
index 9f69298540..97e944186e 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.h
+++ b/src/gallium/drivers/radeon/r600_pipe_common.h
@@ -354,6 +354,8 @@ struct r600_surface {
union r600_grbm_counters {
struct {
+ unsigned spi_busy;
+ unsigned spi_idle;
unsigned gui_busy;
unsigned gui_idle;
} named;
@@ -746,6 +748,8 @@ bool r600_check_device_reset(struct r600_common_context *rctx);
/* r600_gpu_load.c */
void r600_gpu_load_kill_thread(struct r600_common_screen *rscreen);
+uint64_t r600_begin_counter_spi(struct r600_common_screen *rscreen);
+unsigned r600_end_counter_spi(struct r600_common_screen *rscreen, uint64_t begin);
uint64_t r600_begin_counter_gui(struct r600_common_screen *rscreen);
unsigned r600_end_counter_gui(struct r600_common_screen *rscreen, uint64_t begin);