SwapBuffersRegionNOK: invert rectangles on y axis
authorRobert Bragg <robert@linux.intel.com>
Tue, 18 Sep 2012 15:10:03 +0000 (16:10 +0100)
committerMatt Turner <mattst88@gmail.com>
Fri, 5 Oct 2012 22:03:56 +0000 (15:03 -0700)
commite1cb50b15dbb75d1ba0fe184d05be7d302b058ee
tree2f745354fcde1e97cfd4081af7b361d7b0626b57
parentc8fda5f44a02ab8c1c50a052edc6b189f34352ae
SwapBuffersRegionNOK: invert rectangles on y axis

The EGL_NOK_swap_region2 spec states that the rectangles are specified
with a bottom-left origin within a surface coordinate space also with a
bottom left origin, so this patch ensures the rectangles are flipped
before passing them on to dri2_copy_region.

Fixes piglit's egl-nok-swap-region test.

Tested-by: Matt Turner <mattst88@gmail.com>
(cherry picked from commit 0a523a8820e8a2549ac1c7887eb1892b228af44b)
src/egl/drivers/dri2/platform_x11.c