st/egl: Add support for EGL_NOK_swap_region
authorFredrik Höglund <fredrik@kde.org>
Wed, 14 Dec 2011 20:06:28 +0000 (21:06 +0100)
committerChia-I Wu <olv@lunarg.com>
Thu, 15 Dec 2011 07:00:15 +0000 (15:00 +0800)
commitfa0f70e45ed1b69c0e72588a061bc30fd9ad371e
tree0222a838637e3357cca1ce0e3e35179cacde940c
parent3f41f7d1a033dfafc5c3aa1600ecfffd94de0406
st/egl: Add support for EGL_NOK_swap_region

Backends indicate that they support this extension by returning
EGL_TRUE when native_display::get_param() is called with
NATIVE_PARAM_PRESENT_REGION and NATIVE_PARAM_PRESERVE_BUFFER.

native_present_control is extended to include the region that should
be presented. When native_present_control::num_rects is zero,
the whole surface is to be presented.

Signed-off-by: Fredrik Höglund <fredrik@kde.org>
src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/egl/common/native.h