radeonsi: add AMD_DEBUG=nodmaclear for debugging
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
This commit is contained in:
parent
4110e6e564
commit
0c9e7a67f9
|
@ -75,7 +75,8 @@ void si_sdma_clear_buffer(struct si_context *sctx, struct pipe_resource *dst,
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -87,6 +87,7 @@ static const struct debug_named_value debug_options[] = {
|
|||
/* 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." },
|
||||
|
|
|
@ -168,6 +168,7 @@ enum {
|
|||
/* Driver options: */
|
||||
DBG_FORCE_SDMA,
|
||||
DBG_NO_SDMA,
|
||||
DBG_NO_SDMA_CLEARS,
|
||||
DBG_NO_WC,
|
||||
DBG_CHECK_VM,
|
||||
DBG_RESERVE_VMID,
|
||||
|
|
Loading…
Reference in New Issue