summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/platform_wayland.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-21 11:51:33 -0800
committerEric Anholt <[email protected]>2015-01-06 15:40:40 -0800
commit70e8ccc459d9bf579ad7efeae453cb8641266c94 (patch)
tree23fb9d5d057fc5c62acd2082827e13329096e1a3 /src/egl/drivers/dri2/platform_wayland.c
parent5ae13051249f6f9d44dae15e9deb62e7cb09aed7 (diff)
egl: Inform the client API when ancillary buffers may become undefined.
This is part of the EGL spec, and is useful for a tiled renderer to avoid the memory bandwidth cost of storing the depth/stencil buffers. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_wayland.c')
-rw-r--r--src/egl/drivers/dri2/platform_wayland.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index ba0eb10163a..e8b441316ee 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -649,17 +649,7 @@ dri2_wl_swap_buffers_with_damage(_EGLDriver *drv,
}
}
- if (dri2_dpy->flush->base.version >= 4) {
- ctx = _eglGetCurrentContext();
- dri2_ctx = dri2_egl_context(ctx);
- (*dri2_dpy->flush->flush_with_flags)(dri2_ctx->dri_context,
- dri2_surf->dri_drawable,
- __DRI2_FLUSH_DRAWABLE,
- __DRI2_THROTTLE_SWAPBUFFER);
- } else {
- (*dri2_dpy->flush->flush)(dri2_surf->dri_drawable);
- }
-
+ dri2_flush_drawable_for_swapbuffers(disp, draw);
(*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
wl_surface_commit(dri2_surf->wl_win->surface);