diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2016-08-25 13:15:43 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-10-14 12:53:39 +0100 |
commit | 98f5d0106a8ee45e58a6bf162720da3f6f614a95 (patch) | |
tree | 0179539bacaae92ba76661c02509bed009a3875f /src/egl/drivers/dri2/platform_wayland.c | |
parent | 637d001a97a82142bc20d410655098a0b7b39694 (diff) | |
download | external_mesa3d-98f5d0106a8ee45e58a6bf162720da3f6f614a95.zip external_mesa3d-98f5d0106a8ee45e58a6bf162720da3f6f614a95.tar.gz external_mesa3d-98f5d0106a8ee45e58a6bf162720da3f6f614a95.tar.bz2 |
egl/dri2: set WL_bind_wayland_display in a consistent way
Introduce a helper and use it throughout the platform code. This allows
us to reduce the amount of ifdef(s) and (potentially) use
kms_swrast_dri.so for !drm platforms (namely wayland and x11).
Note: in the future as other platforms (android, surfaceless) support
the extension they can reuse the helper.
v2: Rebase, check for device_name.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Diffstat (limited to 'src/egl/drivers/dri2/platform_wayland.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 005d2f3..63edf2e 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1206,7 +1206,7 @@ dri2_initialize_wayland_drm(_EGLDriver *drv, _EGLDisplay *disp) dri2_add_config(disp, config, i + 1, types, NULL, rgb565_masks); } - disp->Extensions.WL_bind_wayland_display = EGL_TRUE; + dri2_set_WL_bind_wayland_display(drv, disp); /* When cannot convert EGLImage to wl_buffer when on a different gpu, * because the buffer of the EGLImage has likely a tiling mode the server * gpu won't support. These is no way to check for now. Thus do not support the |