diff options
author | Eric Engestrom <[email protected]> | 2018-08-16 15:26:10 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-08-16 17:38:18 +0100 |
commit | eb6b41749bb8d9f0788a41937c81435f2fc0f94c (patch) | |
tree | 2b08aeaa9f99c23fc2f8e62e3c146c0612e3fb88 /src/egl/drivers/dri2 | |
parent | c5d9b48a716b4cd6095b3472d9b63f685930980a (diff) |
egl/wayland: remove sign from bitfield `formats`
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 2 | ||||
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index f8001ec4b66..a6588632f77 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -223,7 +223,7 @@ struct dri2_egl_display struct zwp_linux_dmabuf_v1 *wl_dmabuf; struct u_vector *wl_modifiers; bool authenticated; - int formats; + unsigned formats; uint32_t capabilities; char *device_name; #endif diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 0913394b365..43cf00b8ac0 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1059,7 +1059,7 @@ dri2_wl_create_wayland_buffer_from_image(_EGLDriver *drv, if (visual_idx == -1) goto bad_format; - if (!(dri2_dpy->formats & (1 << visual_idx))) + if (!(dri2_dpy->formats & (1u << visual_idx))) goto bad_format; buffer = create_wl_buffer(dri2_dpy, NULL, image); @@ -1140,7 +1140,7 @@ drm_handle_format(void *data, struct wl_drm *drm, uint32_t format) if (visual_idx == -1) return; - dri2_dpy->formats |= (1 << visual_idx); + dri2_dpy->formats |= (1u << visual_idx); } static void @@ -1189,7 +1189,7 @@ dmabuf_handle_modifier(void *data, struct zwp_linux_dmabuf_v1 *dmabuf, modifier_lo == (DRM_FORMAT_MOD_INVALID & 0xffffffff)) return; - dri2_dpy->formats |= (1 << visual_idx); + dri2_dpy->formats |= (1u << visual_idx); mod = u_vector_add(&dri2_dpy->wl_modifiers[visual_idx]); *mod = (uint64_t) modifier_hi << 32; @@ -1288,7 +1288,7 @@ dri2_wl_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp) for (unsigned j = 0; j < ARRAY_SIZE(dri2_wl_visuals); j++) { struct dri2_egl_config *dri2_conf; - if (!(dri2_dpy->formats & (1 << j))) + if (!(dri2_dpy->formats & (1u << j))) continue; dri2_conf = dri2_add_config(disp, dri2_dpy->driver_configs[i], @@ -1906,7 +1906,7 @@ shm_handle_format(void *data, struct wl_shm *shm, uint32_t format) if (visual_idx == -1) return; - dri2_dpy->formats |= (1 << visual_idx); + dri2_dpy->formats |= (1u << visual_idx); } static const struct wl_shm_listener shm_listener = { |