diff --git a/src/panfrost/bifrost/bi_test.h b/src/panfrost/bifrost/bi_test.h index e4df7a2884c..4d93eeafd0c 100644 --- a/src/panfrost/bifrost/bi_test.h +++ b/src/panfrost/bifrost/bi_test.h @@ -84,4 +84,13 @@ bit_instr_equal(bi_instr *A, bi_instr *B) } \ } while(0) +#define BIT_ASSERT(condition) do { \ + if (condition) { \ + nr_pass++; \ + } else { \ + fprintf(stderr, "Assertion failed: %s\n", #condition); \ + nr_fail++; \ + } \ +} while(0) + #endif