https://bugs.winehq.org/show_bug.cgi?id=45901
--- Comment #13 from Andrew Wesie awesie@gmail.com --- I put together a patch based on readpixels and submitted it in a bug report to Mesa, along with a piglit test case.
https://bugs.freedesktop.org/show_bug.cgi?id=108263