diff options
author | Marek Olšák <[email protected]> | 2014-09-05 20:15:16 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-05-10 17:20:09 +0200 |
commit | 3af28e558fb9cf71edd83e8cc9c3ddc33373cc93 (patch) | |
tree | 769f4c6d59b9a1ec3e6c1cea3b90bfea17d4be88 /src/gallium/drivers/radeonsi/si_pipe.c | |
parent | f475c9fb0708c312a4194558da36204becfafd35 (diff) |
gallium/radeon: implement randomized SDMA texture copy testing (v2)
v2: - adjustments for exercising all important SDMA code paths
- decrease the probability of getting huge sizes (faster testing)
- increase the probability of getting power-of-two dimensions
- change the memory cap to 128MB (faster testing)
- better detect which engine has been used
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 61d55781161..1a69f43c8c2 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -690,5 +690,8 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws) /* Create the auxiliary context. This must be done last. */ sscreen->b.aux_context = sscreen->b.b.context_create(&sscreen->b.b, NULL, 0); + if (sscreen->b.debug_flags & DBG_TEST_DMA) + r600_test_dma(&sscreen->b); + return &sscreen->b.b; } |