Commit 40160c57 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜 Committed by Marge Bot
Browse files

pan/bit: Add verbose printing for tests

We'd like to dump both the generated IR (so we know exactly what's being
tested) as well as the compiled program (so we know what's running for
Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Part-of: <mesa/mesa!4458>
parent 7c887d36
......@@ -26,6 +26,8 @@
#include "bit.h"
#include "bi_print.h"
#include "util/half_float.h"
#include "bifrost/disassemble.h"
/* Instruction packing tests */
......@@ -142,8 +144,15 @@ bit_test_single(struct panfrost_device *dev,
panfrost_program prog;
bi_pack(ctx, &prog.compiled);
return bit_vertex(dev, prog, input, 16, NULL, 0,
bool succ = bit_vertex(dev, prog, input, 16, NULL, 0,
s.r, 16, debug);
if (debug >= BIT_DEBUG_ALL || (!succ && debug >= BIT_DEBUG_FAIL)) {
bi_print_shader(ctx, stderr);
disassemble_bifrost(stderr,, prog.compiled.size, true);
return succ;
/* Utilities for generating tests */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment