Mesa (master): radeonsi: don't test SDMA perf if SDMA is disabled/unsupported

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 12 00:05:40 UTC 2019


Module: Mesa
Branch: master
Commit: ec0956a19460896838127e4f596dc28465c9a24a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec0956a19460896838127e4f596dc28465c9a24a

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue May 21 18:39:43 2019 -0400

radeonsi: don't test SDMA perf if SDMA is disabled/unsupported

---

 src/gallium/drivers/radeonsi/si_test_dma_perf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_test_dma_perf.c b/src/gallium/drivers/radeonsi/si_test_dma_perf.c
index 263187d683f..0b5a4a38ab7 100644
--- a/src/gallium/drivers/radeonsi/si_test_dma_perf.c
+++ b/src/gallium/drivers/radeonsi/si_test_dma_perf.c
@@ -112,6 +112,9 @@ void si_test_dma_perf(struct si_screen *sscreen)
 			unsigned cs_dwords_per_thread =
 				test_cs ? cs_dwords_per_thread_list[cs_method % NUM_SHADERS] : 0;
 
+			if (test_sdma && !sctx->dma_cs)
+				continue;
+
 			if (sctx->chip_class == GFX6) {
 				/* GFX6 doesn't support CP DMA operations through L2. */
 				if (test_cp && cache_policy != L2_BYPASS)




More information about the mesa-commit mailing list