From d0963ef0843456f3c5ef0ae0926e11f10fa606fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 10 Jul 2017 01:33:38 +0200 Subject: [PATCH] radeonsi/gfx9: don't read back non-existent register SRBM_STATUS2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It looks like there is no way to monitor SDMA busyness on GFX9. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeon/r600_gpu_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/r600_gpu_load.c b/src/gallium/drivers/radeon/r600_gpu_load.c index 3b45545b7b6..d8f7c3d90b7 100644 --- a/src/gallium/drivers/radeon/r600_gpu_load.c +++ b/src/gallium/drivers/radeon/r600_gpu_load.c @@ -105,7 +105,7 @@ static void r600_update_mmio_counters(struct r600_common_screen *rscreen, UPDATE_COUNTER(gui, GUI_ACTIVE); gui_busy = GUI_ACTIVE(value); - if (rscreen->chip_class >= CIK) { + if (rscreen->chip_class == CIK || rscreen->chip_class == VI) { /* SRBM_STATUS2 */ rscreen->ws->read_registers(rscreen->ws, SRBM_STATUS2, 1, &value); -- 2.30.2