···5454 assert(cl->queue == queue, "submit: commandlist from foreign queue");
55555656 queue->cmd_ring->submit(cl->cs);
5757+5858+ // @todo: to free commandlist, we want to be sure that it is no longer mapped and stuff.
5959+ // then, we can freely-free it. But i think this needs some deferred-cleanup, as
6060+ // the data is on GTT so we cannot just let the CPU start using the range again.
6161+ //
6262+ // think about this.
5763}
58645965}
+3
libvektor/test/02_hello_queue/hello_queue.cpp
···2323 vektor::submit(dma, l1);
24242525 // @todo: how to wait on cpu for DMA transfer? TODO?
2626+ printf("x[0]: %u\n", ((uint32_t *)x.cpu)[0]);
2727+ sleep(1);
2828+ printf("x[0]: %u\n", ((uint32_t *)x.cpu)[0]);
26292730 vektor::free(dev, x);
2831 vektor::destroy(dev);