mesa/st: add 2d indexing support to outputs