From: Marek Olšák Date: Sun, 9 Jul 2017 23:33:38 +0000 (+0200) Subject: radeonsi/gfx9: don't read back non-existent register SRBM_STATUS2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0963ef0843456f3c5ef0ae0926e11f10fa606fe;p=mesa.git radeonsi/gfx9: don't read back non-existent register SRBM_STATUS2 It looks like there is no way to monitor SDMA busyness on GFX9. Reviewed-by: Nicolai Hähnle --- 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);