mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
freedreno/decode: print estimated crash location without colored output
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12302>
This commit is contained in:
parent
7684d57a05
commit
a57bcc4394
2 changed files with 3 additions and 5 deletions
|
|
@ -1728,6 +1728,7 @@ got cmdszdw=27
|
|||
0000000100000014: 0000: 70108000
|
||||
bad type! deadd00d
|
||||
opcode: CP_NOP (10) (1 dwords)
|
||||
ESTIMATED CRASH LOCATION!
|
||||
0000000100000020: 0000: 70108000
|
||||
opcode: CP_NOP (10) (1 dwords)
|
||||
0000000100000024: 0000: 70108000
|
||||
|
|
|
|||
|
|
@ -168,9 +168,6 @@ static void dump_tex_const(uint32_t *texsamp, int num_unit, int level);
|
|||
static bool
|
||||
highlight_gpuaddr(uint64_t gpuaddr)
|
||||
{
|
||||
if (!options->color)
|
||||
return false;
|
||||
|
||||
if (!options->ibs[ib].base)
|
||||
return false;
|
||||
|
||||
|
|
@ -178,7 +175,7 @@ highlight_gpuaddr(uint64_t gpuaddr)
|
|||
return false;
|
||||
|
||||
if (ibs[ib].triggered)
|
||||
return true;
|
||||
return options->color;
|
||||
|
||||
if (options->ibs[ib].base != ibs[ib].base)
|
||||
return false;
|
||||
|
|
@ -193,7 +190,7 @@ highlight_gpuaddr(uint64_t gpuaddr)
|
|||
if (triggered)
|
||||
printf("ESTIMATED CRASH LOCATION!\n");
|
||||
|
||||
return triggered;
|
||||
return triggered & options->color;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue