assert(size);
assert(size % 4 == 0);
- if (!cs || dst->flags & PIPE_RESOURCE_FLAG_SPARSE) {
+ if (!cs || dst->flags & PIPE_RESOURCE_FLAG_SPARSE ||
+ sctx->screen->debug_flags & DBG(NO_SDMA_CLEARS)) {
sctx->b.clear_buffer(&sctx->b, dst, offset, size, &clear_value, 4);
return;
}
/* Driver options: */
{ "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" },
{ "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." },