egl: Update to Wayland 1.2 server API
[mesa.git] / src / gallium / state_trackers / egl / common / native.h
index ee24c220e79c9139b3143e13f6f2af2e55817ba0..797933d8d753c718b470a3d726344e7aee03dc3f 100644 (file)
@@ -1,6 +1,5 @@
 /*
  * Mesa 3-D graphics library
- * Version:  7.8
  *
  * Copyright (C) 2009-2010 Chia-I Wu <olv@0xlab.org>
  *
@@ -81,7 +80,13 @@ enum native_param_type {
     * EGL_ALPHA_SIZE.  EGL_VG_ALPHA_FORMAT attribute of a surface will affect
     * how the surface is presented.
     */
-   NATIVE_PARAM_PREMULTIPLIED_ALPHA
+   NATIVE_PARAM_PREMULTIPLIED_ALPHA,
+
+   /**
+    * Return TRUE if native_surface::present supports presenting a partial
+    * surface.
+    */
+   NATIVE_PARAM_PRESENT_REGION
 };
 
 /**
@@ -99,6 +104,11 @@ struct native_present_control {
 
    /**< pixels use premultiplied alpha */
    boolean premultiplied_alpha;
+
+   /**< The region to present. y=0=top.
+        If num_rects is 0, the whole surface is to be presented */
+   int num_rects;
+   const int *rects; /* x, y, width, height */
 };
 
 struct native_surface {
@@ -235,7 +245,7 @@ struct native_display {
 
    const struct native_display_buffer *buffer;
    const struct native_display_modeset *modeset;
-   const struct native_display_wayland_bufmgr *wayland_bufmgr;
+   struct native_display_wayland_bufmgr *wayland_bufmgr;
 };
 
 /**