radeonsi/gfx12: fix shader uploads via CP DMA
It was incorrectly assumed that CP DMA is never used.
Fixes: c90d4e0d57 - radeonsi/gfx12: remove CP DMA workarounds because CP DMA is never used on gfx12
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31082>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
static bool cp_dma_use_L2(struct si_context *sctx)
|
||||
{
|
||||
return sctx->gfx_level >= GFX7;
|
||||
return sctx->gfx_level >= GFX7 && !sctx->screen->info.cp_sdma_ge_use_system_memory_scope;
|
||||
}
|
||||
|
||||
/* The max number of bytes that can be copied per packet. */
|
||||
@@ -242,7 +242,6 @@ void si_cp_dma_copy_buffer(struct si_context *sctx, struct pipe_resource *dst,
|
||||
struct pipe_resource *src, uint64_t dst_offset, uint64_t src_offset,
|
||||
unsigned size, unsigned user_flags)
|
||||
{
|
||||
assert(!sctx->screen->info.cp_sdma_ge_use_system_memory_scope);
|
||||
assert(size);
|
||||
assert(dst && src);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user