fifo: add support for depth=2