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:
Ian Romanick 2025-09-15 16:45:40 -07:00 committed by Marge Bot
parent fdb01f2a5a
commit d2077e24f6

View file

@ -27,6 +27,7 @@
#include "brw_disasm_info.h" #include "brw_disasm_info.h"
#include "dev/intel_debug.h" #include "dev/intel_debug.h"
#include "compiler/nir/nir.h" #include "compiler/nir/nir.h"
#include "util/lut.h"
static bool static bool
is_do_block(struct bblock_t *block) is_do_block(struct bblock_t *block)
@ -172,6 +173,9 @@ disasm_annotate(struct disasm_info *disasm,
#ifndef NDEBUG #ifndef NDEBUG
if (INTEL_DEBUG(DEBUG_ANNOTATION)) { if (INTEL_DEBUG(DEBUG_ANNOTATION)) {
group->annotation = inst->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 #endif