draw/gs: only allocate memory for streams needed.