mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
brw/disasm: Pretty print the BFN equation as an annotation
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37186>
This commit is contained in:
parent
fdb01f2a5a
commit
d2077e24f6
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "brw_disasm_info.h"
|
||||
#include "dev/intel_debug.h"
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "util/lut.h"
|
||||
|
||||
static bool
|
||||
is_do_block(struct bblock_t *block)
|
||||
|
|
@ -172,6 +173,9 @@ disasm_annotate(struct disasm_info *disasm,
|
|||
#ifndef NDEBUG
|
||||
if (INTEL_DEBUG(DEBUG_ANNOTATION)) {
|
||||
group->annotation = inst->annotation;
|
||||
|
||||
if (group->annotation == NULL && inst->opcode == BRW_OPCODE_BFN)
|
||||
group->annotation = util_lut3_to_str[inst->src[3].ud & 0xff];
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue