egl/surfaceless: remove eglSwap* stubs
The API validation in eglapi.c already returns if the surface type is !window. Cc: samiuddi <sami.uddin.mohammad@intel.com> Cc: Erik Faye-Lund <kusmabite@gmail.com> Cc: Tomasz Figa <tfiga@chromium.org> Cc: Gurchetan Singh <gurchetansingh@chromium.org> Cc: Chad Versace <chadversary@chromium.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
a370e278d3
commit
8030741996
|
@ -180,17 +180,6 @@ dri2_surfaceless_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp,
|
||||||
attrib_list);
|
attrib_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
static EGLBoolean
|
||||||
surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
|
surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
|
||||||
{
|
{
|
||||||
|
@ -237,8 +226,6 @@ static const struct dri2_egl_display_vtbl dri2_surfaceless_display_vtbl = {
|
||||||
.create_pbuffer_surface = dri2_surfaceless_create_pbuffer_surface,
|
.create_pbuffer_surface = dri2_surfaceless_create_pbuffer_surface,
|
||||||
.destroy_surface = surfaceless_destroy_surface,
|
.destroy_surface = surfaceless_destroy_surface,
|
||||||
.create_image = dri2_create_image_khr,
|
.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,
|
.swap_buffers_region = dri2_fallback_swap_buffers_region,
|
||||||
.set_damage_region = dri2_fallback_set_damage_region,
|
.set_damage_region = dri2_fallback_set_damage_region,
|
||||||
.post_sub_buffer = dri2_fallback_post_sub_buffer,
|
.post_sub_buffer = dri2_fallback_post_sub_buffer,
|
||||||
|
|
Loading…
Reference in New Issue