pan/bit: Stub out BIR interpreter
[mesa.git] / src / panfrost / bifrost / test / bit.h
index 6838da7c9eb24899e818708f53c624feb70fd8a5..a399c78393dc45f31fbe665569fde99e6585f07d 100644 (file)
 #include "panfrost/include/panfrost-job.h"
 #include "panfrost/encoder/pan_device.h"
 #include "panfrost/encoder/pan_bo.h"
+#include "bifrost_compile.h"
+#include "bifrost/compiler.h"
 
 struct panfrost_device *
 bit_initialize(void *memctx);
 
+bool bit_sanity_check(struct panfrost_device *dev);
+
+enum bit_debug {
+        BIT_DEBUG_NONE = 0,
+        BIT_DEBUG_FAIL,
+        BIT_DEBUG_ALL
+};
+
+bool
+bit_vertex(struct panfrost_device *dev, panfrost_program prog,
+                uint32_t *iubo, size_t sz_ubo,
+                uint32_t *iattr, size_t sz_attr,
+                uint32_t *expected, size_t sz_expected, enum bit_debug);
+
+/* BIT interpreter */
+
+struct bit_state {
+        uint32_t r[64];
+};
+
+void
+bit_step(struct bit_state *s, bi_instruction *ins);
+
 #endif