mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
freedreno: Add debug option to crash on context fault
Makes debugging easier. Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36589>
This commit is contained in:
parent
f10217a6a3
commit
50921081c0
3 changed files with 5 additions and 0 deletions
|
|
@ -127,6 +127,9 @@ out:
|
|||
|
||||
u_trace_context_process(&ctx->trace_context,
|
||||
!!(flags & PIPE_FLUSH_END_OF_FRAME));
|
||||
|
||||
if (FD_DBG(ABORT))
|
||||
assert(pctx->get_device_reset_status(pctx) == PIPE_NO_RESET);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ static const struct debug_named_value fd_debug_options[] = {
|
|||
{"nohw", FD_DBG_NOHW, "Disable submitting commands to the HW"},
|
||||
{"nosbin", FD_DBG_NOSBIN, "Execute GMEM bins in raster order instead of 'S' pattern"},
|
||||
{"stomp", FD_DBG_STOMP, "Enable register stomper"},
|
||||
{"abort", FD_DBG_ABORT, "Abort on GPU reset"},
|
||||
DEBUG_NAMED_VALUE_END
|
||||
};
|
||||
/* clang-format on */
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ enum fd_debug_flag {
|
|||
FD_DBG_NOHW = BITFIELD_BIT(28),
|
||||
FD_DBG_NOSBIN = BITFIELD_BIT(29),
|
||||
FD_DBG_STOMP = BITFIELD_BIT(30),
|
||||
FD_DBG_ABORT = BITFIELD_BIT(31),
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue