projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
993bf52
)
radeonsi: don't test SDMA perf if SDMA is disabled/unsupported
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 21 May 2019 22:39:43 +0000
(18:39 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 12 Jun 2019 00:05:21 +0000
(20:05 -0400)
src/gallium/drivers/radeonsi/si_test_dma_perf.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_test_dma_perf.c
b/src/gallium/drivers/radeonsi/si_test_dma_perf.c
index 263187d683f1876108e0696b783cafe283222f46..0b5a4a38ab798c4b2d4b967a72ecd47ba286bef8 100644
(file)
--- 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)