svga: D3DCOLOR actually stands for B8G8R8A8.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Apr 2010 10:38:41 +0000 (11:38 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Apr 2010 10:39:12 +0000 (11:39 +0100)
src/gallium/drivers/svga/svga_state_need_swtnl.c

index c8ea7494d857108b0222f45553404c57cfd82f71..d34d68f5350f44642d8127cde9ed25bf07dc42b3 100644 (file)
@@ -43,7 +43,7 @@ svga_translate_vertex_format(enum pipe_format format)
    case PIPE_FORMAT_R32G32_FLOAT:         return SVGA3D_DECLTYPE_FLOAT2;
    case PIPE_FORMAT_R32G32B32_FLOAT:      return SVGA3D_DECLTYPE_FLOAT3;
    case PIPE_FORMAT_R32G32B32A32_FLOAT:   return SVGA3D_DECLTYPE_FLOAT4;
-   case PIPE_FORMAT_A8R8G8B8_UNORM:       return SVGA3D_DECLTYPE_D3DCOLOR;
+   case PIPE_FORMAT_B8G8R8A8_UNORM:       return SVGA3D_DECLTYPE_D3DCOLOR;
    case PIPE_FORMAT_R8G8B8A8_USCALED:     return SVGA3D_DECLTYPE_UBYTE4;
    case PIPE_FORMAT_R16G16_SSCALED:       return SVGA3D_DECLTYPE_SHORT2;
    case PIPE_FORMAT_R16G16B16A16_SSCALED: return SVGA3D_DECLTYPE_SHORT4;