Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
Mesa.13445
n_Fixed-build-against-wayland-1.2.1.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File n_Fixed-build-against-wayland-1.2.1.patch of Package Mesa.13445
From 968a11158031d5d51e63f18cf4cddea7ae23177f Mon Sep 17 00:00:00 2001 From: Stefan Dirsch <sndirsch@suse.de> Date: Tue, 23 Jun 2015 16:43:51 +0200 Subject: [PATCH] Fixed build against wayland 1.2.1 Wayland 1.2.1 still lacks definition of WL_SHM_FORMAT_RGB565 format. --- src/egl/drivers/dri2/platform_wayland.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index ea2f9f2..4351e08 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1236,9 +1236,6 @@ dri2_initialize_wayland_drm(_EGLDriver *drv, _EGLDisplay *disp) static int dri2_wl_swrast_get_stride_for_format(int format, int w) { - if (format == WL_SHM_FORMAT_RGB565) - return 2 * w; - else /* ARGB8888 || XRGB8888 */ return 4 * w; } @@ -1672,9 +1669,7 @@ dri2_wl_swrast_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp, if (!_eglInitSurface(&dri2_surf->base, disp, EGL_WINDOW_BIT, conf, attrib_list)) goto cleanup_surf; - if (conf->RedSize == 5) - dri2_surf->format = WL_SHM_FORMAT_RGB565; - else if (conf->AlphaSize == 0) + if (conf->AlphaSize == 0) dri2_surf->format = WL_SHM_FORMAT_XRGB8888; else dri2_surf->format = WL_SHM_FORMAT_ARGB8888; @@ -1728,9 +1723,6 @@ shm_handle_format(void *data, struct wl_shm *shm, uint32_t format) case WL_SHM_FORMAT_XRGB8888: dri2_dpy->formats |= HAS_XRGB8888; break; - case WL_SHM_FORMAT_RGB565: - dri2_dpy->formats |= HAS_RGB565; - break; } } -- 1.8.4.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor