drm/nouveau: Rename pipe formats.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 18:14:26 +0000 (18:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Mar 2010 10:21:55 +0000 (10:21 +0000)
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c

index c814d986b1daa61451f202289b664ef76c81b425..0d05f316c42fbe1f324469e57a23bc90ef744524 100644 (file)
@@ -119,9 +119,9 @@ nouveau_drm_create_screen(struct drm_api *api, int fd,
                enum pipe_format format;
 
                if (nvdri->bpp == 16)
-                       format = PIPE_FORMAT_R5G6B5_UNORM;
+                       format = PIPE_FORMAT_B5G6R5_UNORM;
                else
-                       format = PIPE_FORMAT_A8R8G8B8_UNORM;
+                       format = PIPE_FORMAT_B8G8R8A8_UNORM;
 
                nvws->front = dri_surface_from_handle(api, nvws->pscreen,
                                                      nvdri->front_offset,