pan/bit: Wire through I/O
[mesa.git] / src / panfrost / bifrost / cmdline.c
index a62f230cbba17488b03b22a9b6b191c1b56a1218..a0be7605b8b248159d1354fd28c5f76dcb17d58a 100644 (file)
@@ -103,7 +103,24 @@ test_vertex(char **argv)
 {
         void *memctx = NULL; /* TODO */
         struct panfrost_device *dev = bit_initialize(memctx);
-        bit_vertex(dev, compile_shader(argv, true));
+
+        float iubo[] = {
+                0.1, 0.2, 0.3, 0.4
+        };
+
+        float iattr[] = {
+                0.5, 0.6, 0.7, 0.8
+        };
+
+        float expected[] = {
+                0.6, 0.8, 1.0, 1.2
+        };
+
+        bit_vertex(dev, compile_shader(argv, true),
+                        (uint32_t *) iubo, sizeof(iubo),
+                        (uint32_t *) iattr, sizeof(iattr),
+                        (uint32_t *) expected, sizeof(expected),
+                        BIT_DEBUG_ALL);
 }
 
 static void
@@ -133,7 +150,7 @@ run(const char *filename)
                 },
         };
 
-        bit_vertex(dev, prog);
+        bit_vertex(dev, prog, NULL, 0, NULL, 0, NULL, 0, BIT_DEBUG_FAIL);
 
         free(code);
 }