* Keep SDMA enabled on APUs.
*/
if (sctx->screen->debug_flags & DBG(FORCE_SDMA) ||
- !sctx->screen->info.has_dedicated_vram) {
+ (!sctx->screen->info.has_dedicated_vram &&
+ !(sctx->screen->debug_flags & DBG(NO_SDMA_COPY_IMAGE)))) {
if ((sctx->chip_class == GFX7 || sctx->chip_class == GFX8) &&
cik_sdma_copy_texture(sctx, dst, dst_level, dstx, dsty, dstz,
src, src_level, src_box))
{ "forcedma", DBG(FORCE_SDMA), "Use SDMA for all operations when possible." },
{ "nodma", DBG(NO_SDMA), "Disable SDMA" },
{ "nodmaclear", DBG(NO_SDMA_CLEARS), "Disable SDMA clears" },
+ { "nodmacopyimage", DBG(NO_SDMA_COPY_IMAGE), "Disable SDMA image copies" },
{ "nowc", DBG(NO_WC), "Disable GTT write combining" },
{ "check_vm", DBG(CHECK_VM), "Check VM faults and dump debug info." },
{ "reserve_vmid", DBG(RESERVE_VMID), "Force VMID reservation per context." },