diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-03-25 00:19:02 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-03-25 00:19:02 +0000 |
commit | 0ad866088a8e454456ac70baecf687d8a5d778c6 (patch) | |
tree | 7a14298d9b4761a1a9ddb2c8a71181157ce00372 /lib/mesa/src/egl | |
parent | 69b5b3baa9f08e83592004d9545c146f17b7fd30 (diff) |
Import Mesa 13.0.6
Diffstat (limited to 'lib/mesa/src/egl')
-rw-r--r-- | lib/mesa/src/egl/drivers/dri2/platform_x11_dri3.c | 20 | ||||
-rw-r--r-- | lib/mesa/src/egl/wayland/wayland-drm/wayland-drm-protocol.c | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lib/mesa/src/egl/drivers/dri2/platform_x11_dri3.c b/lib/mesa/src/egl/drivers/dri2/platform_x11_dri3.c index 475ec05a9..1648ef08d 100644 --- a/lib/mesa/src/egl/drivers/dri2/platform_x11_dri3.c +++ b/lib/mesa/src/egl/drivers/dri2/platform_x11_dri3.c @@ -438,6 +438,25 @@ dri3_query_buffer_age(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf) return loader_dri3_query_buffer_age(&dri3_surf->loader_drawable); } +static EGLBoolean +dri3_query_surface(_EGLDriver *drv, _EGLDisplay *dpy, + _EGLSurface *surf, EGLint attribute, + EGLint *value) +{ + struct dri3_egl_surface *dri3_surf = dri3_egl_surface(surf); + + switch (attribute) { + case EGL_WIDTH: + case EGL_HEIGHT: + loader_dri3_update_drawable_geometry(&dri3_surf->loader_drawable); + break; + default: + break; + } + + return _eglQuerySurface(drv, dpy, surf, attribute, value); +} + static __DRIdrawable * dri3_get_dri_drawable(_EGLSurface *surf) { @@ -460,6 +479,7 @@ struct dri2_egl_display_vtbl dri3_x11_display_vtbl = { .post_sub_buffer = dri2_fallback_post_sub_buffer, .copy_buffers = dri3_copy_buffers, .query_buffer_age = dri3_query_buffer_age, + .query_surface = dri3_query_surface, .create_wayland_buffer_from_image = dri2_fallback_create_wayland_buffer_from_image, .get_sync_values = dri3_get_sync_values, .get_dri_drawable = dri3_get_dri_drawable, diff --git a/lib/mesa/src/egl/wayland/wayland-drm/wayland-drm-protocol.c b/lib/mesa/src/egl/wayland/wayland-drm/wayland-drm-protocol.c index d47dcdfad..15aeb7c52 100644 --- a/lib/mesa/src/egl/wayland/wayland-drm/wayland-drm-protocol.c +++ b/lib/mesa/src/egl/wayland/wayland-drm/wayland-drm-protocol.c @@ -1,4 +1,4 @@ -/* Generated by wayland-scanner 1.12.0 */ +/* Generated by wayland-scanner 1.13.0 */ /* * Copyright © 2008-2011 Kristian Høgsberg |