mesa: refactor: move glReadPixels code into new readpix.c file