OSDN Git Service

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>
Tue, 2 Oct 2012 21:49:00 +0000 (14:49 -0700)
commit0a523a8820e8a2549ac1c7887eb1892b228af44b
tree5946c39b5bb5b56f75b16a3ca60bdf858bfa3338
parentdf4a88ac4398ec4c152eb57a7129c07bb623edd7
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>
src/egl/drivers/dri2/platform_x11.c