Complete ARGB8888 naming convention format renames missed
authorScott Moreau <oreaus@gmail.com>
Tue, 17 Jan 2012 15:36:12 +0000 (10:36 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Jan 2012 15:36:12 +0000 (10:36 -0500)
src/gallium/state_trackers/egl/wayland/native_shm.c

index b76e5db33db734073792421032734dff243961af..7d83e78fb49e607e97f66ae7efae87c4ef402a0b 100644 (file)
@@ -94,11 +94,10 @@ wayland_create_shm_buffer(struct wayland_display *display,
 
    switch (surface->color_format) {
    case PIPE_FORMAT_B8G8R8A8_UNORM:
-      format = (surface->premultiplied_alpha) ?
-         WL_SHM_FORMAT_PREMULTIPLIED_ARGB32 : WL_SHM_FORMAT_ARGB32;
+      format = WL_SHM_FORMAT_ARGB8888;
       break;
    case PIPE_FORMAT_B8G8R8X8_UNORM:
-      format = WL_SHM_FORMAT_XRGB32;
+      format = WL_SHM_FORMAT_XRGB8888;
       break;
    default:
       return NULL;
@@ -116,7 +115,7 @@ shm_handle_format(void *data, struct wl_shm *shm, uint32_t format)
    struct wayland_shm_display *shmdpy = data;
 
    switch (format) {
-   case WL_SHM_FORMAT_ARGB32:
+   case WL_SHM_FORMAT_ARGB8888:
       shmdpy->base.formats |= HAS_ARGB8888;
       break;
    case WL_SHM_FORMAT_XRGB8888: