diff options
author | Emil Velikov <[email protected]> | 2018-09-03 13:05:26 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-10-03 13:38:06 +0100 |
commit | 803074199636bb99f6438906a1e93c7533246b82 (patch) | |
tree | c3e81b821e8b0b73587eec3e25e28ef8f3ec2d0c /src/egl/drivers/dri2 | |
parent | a370e278d3bba4b0304d4a1e6de1e9a4f9c26266 (diff) |
egl/surfaceless: remove eglSwap* stubs
The API validation in eglapi.c already returns if the surface type is
!window.
Cc: samiuddi <[email protected]>
Cc: Erik Faye-Lund <[email protected]>
Cc: Tomasz Figa <[email protected]>
Cc: Gurchetan Singh <[email protected]>
Cc: Chad Versace <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/platform_surfaceless.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c index bfc8fb99eab..1fd5925ae3c 100644 --- a/src/egl/drivers/dri2/platform_surfaceless.c +++ b/src/egl/drivers/dri2/platform_surfaceless.c @@ -181,17 +181,6 @@ dri2_surfaceless_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp, } static EGLBoolean -surfaceless_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf) -{ - assert(!surf || surf->Type == EGL_PBUFFER_BIT); - - /* From the EGL 1.5 spec: - * If surface is a [...] pbuffer surface, eglSwapBuffers has no effect. - */ - return EGL_TRUE; -} - -static EGLBoolean surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy); @@ -237,8 +226,6 @@ static const struct dri2_egl_display_vtbl dri2_surfaceless_display_vtbl = { .create_pbuffer_surface = dri2_surfaceless_create_pbuffer_surface, .destroy_surface = surfaceless_destroy_surface, .create_image = dri2_create_image_khr, - .swap_buffers = surfaceless_swap_buffers, - .swap_buffers_with_damage = dri2_fallback_swap_buffers_with_damage, .swap_buffers_region = dri2_fallback_swap_buffers_region, .set_damage_region = dri2_fallback_set_damage_region, .post_sub_buffer = dri2_fallback_post_sub_buffer, |