Skip to content

panfrost: fix crash when disassembling shader for trace

Eric Smith requested to merge ericsmith/mesa:panfrost-trace-crash-fix into main
panfrost: fix crash when disassembling shader for trace

During disassembly triggered by PAN_MESA_DEBUG=trace,
he upper bits of the blend shader address are set from the passed
in frag_shader. However, this is 0 for some blend shaders. In this case,
use the upper bits from the blend descriptor instead.

This fixes a failing assert at line 86 of panfrost/lib/genxml/decode.h.

Merge request reports