From: Pierre-Eric Pelloux-Prayer Date: Wed, 20 May 2020 13:30:37 +0000 (+0200) Subject: radeonsi: fix inversed arguments in si_test_gds_memory_management X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d92ab0e76319220919fccf98550db9adf4030313;p=mesa.git radeonsi: fix inversed arguments in si_test_gds_memory_management clang warning: implicit conversion from enumeration type 'enum radeon_bo_usage' to different enumeration type 'enum radeon_bo_domain' Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 832799de0d0..c370c659d1d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -853,7 +853,7 @@ static void si_test_gds_memory_management(struct si_context *sctx, unsigned allo SI_CPDMA_SKIP_BO_LIST_UPDATE | SI_CPDMA_SKIP_CHECK_CS_SPACE | SI_CPDMA_SKIP_GFX_SYNC, 0, 0); - ws->cs_add_buffer(cs[i], gds_bo[i], domain, RADEON_USAGE_READWRITE, 0); + ws->cs_add_buffer(cs[i], gds_bo[i], RADEON_USAGE_READWRITE, domain, 0); ws->cs_flush(cs[i], PIPE_FLUSH_ASYNC, NULL); } }