summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-05-21 18:39:43 -0400
committerMarek Olšák <[email protected]>2019-06-11 20:05:21 -0400
commitec0956a19460896838127e4f596dc28465c9a24a (patch)
tree73abc1afbfdffa2499a846e7380e4cba483a2879 /src
parent993bf52977c66920cae505de9a670956e7842fc5 (diff)
radeonsi: don't test SDMA perf if SDMA is disabled/unsupported
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_test_dma_perf.c3
1 files changed, 3 insertions, 0 deletions
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)