diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-12-04 16:13:35 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-12-09 17:41:23 -0800 |
commit | d0f606ffbde369aae3acf8c943ef38002ae14e62 (patch) | |
tree | 8275e20f62bb54f3250cf0b7b257e3a96438a655 /src/egl/drivers | |
parent | fdede182756e01690df62cece8a022c437274201 (diff) |
egl/wayland: Damage INT32_MAX x INT32_MAX region for eglSwapBuffers
If we're not using EGL_EXT_swap_buffers_with_damage, we have to
damage the full extent. EGL operates on buffer coordinates, but
wl_surface.damage takes surface coordinates. EGL doesn't know the
buffer transformation (rotated or scaled) and can't post accurate
damage in surface coordinates. The damage event however is clipped to
the surface extents so we can just damage the maximum rectangle.
In case of EGL_EXT_swap_buffers_with_damage, the application knows
the buffer transform and is expected to pass in rectangles in
surface space.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70250
Cc: "10.0" mesa-stable@lists.freedesktop.org
Tested-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
(cherry picked from commit bce64c6c83122b1f4a684cc7890c7a61d2f9ffd7)
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index f9065bbf0db..3c301b6895c 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -598,8 +598,8 @@ dri2_swap_buffers_with_damage(_EGLDriver *drv, dri2_surf->dy = 0; if (n_rects == 0) { - wl_surface_damage(dri2_surf->wl_win->surface, 0, 0, - dri2_surf->base.Width, dri2_surf->base.Height); + wl_surface_damage(dri2_surf->wl_win->surface, + 0, 0, INT32_MAX, INT32_MAX); } else { for (i = 0; i < n_rects; i++) { const int *rect = &rects[i * 4]; |