draw: Rename pipe formats.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 18:09:55 +0000 (18:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 18:53:31 +0000 (18:53 +0000)
src/gallium/auxiliary/draw/draw_pipe_vbuf.c
src/gallium/auxiliary/draw/draw_pt_emit.c
src/gallium/auxiliary/draw/draw_vs_aos_io.c

index d40c035240110318a597c4c350e2f11a8cac6863..27099579618f2ccf367a86b88bd9249f7207549c 100644 (file)
@@ -262,7 +262,7 @@ vbuf_start_prim( struct vbuf_stage *vbuf, uint prim )
         src_offset = 0;
         break;
       case EMIT_4UB:
-        output_format = PIPE_FORMAT_B8G8R8A8_UNORM;
+        output_format = PIPE_FORMAT_A8R8G8B8_UNORM;
         emit_sz = 4 * sizeof(ubyte);
          break;
       default:
index 4fb53276bbeab5f14c2275ab4e0c8fcb61b93a26..ae357b512262ccf08584a6eb7fdda863766e2553 100644 (file)
@@ -112,7 +112,7 @@ void draw_pt_emit_prepare( struct pt_emit *emit,
         src_offset = 0;
         break;
       case EMIT_4UB:
-        output_format = PIPE_FORMAT_B8G8R8A8_UNORM;
+        output_format = PIPE_FORMAT_A8R8G8B8_UNORM;
         emit_sz = 4 * sizeof(ubyte);
          break;
       default:
index a6eb37d12806daa9522f7c32028cf6e9c2c25339..ece1ddde0cbadcc88ec9e10fe2aa49a88263c7b2 100644 (file)
@@ -191,7 +191,7 @@ static boolean load_input( struct aos_compilation *cp,
    case PIPE_FORMAT_R32G32B32A32_FLOAT:
       emit_load_R32G32B32A32(cp, dataXMM, src);
       break;
-   case PIPE_FORMAT_B8G8R8A8_UNORM:
+   case PIPE_FORMAT_A8R8G8B8_UNORM:
       emit_load_R8G8B8A8_UNORM(cp, dataXMM, src);
       emit_swizzle(cp, dataXMM, dataXMM, SHUF(Z,Y,X,W));
       break;