gallium: add support for aliased 4ub format
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 23 Nov 2007 12:03:45 +0000 (12:03 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 9 Dec 2007 14:05:12 +0000 (14:05 +0000)
src/mesa/pipe/draw/draw_vertex_fetch.c

index e0759c2e9a9ccc90b633908ecab1584b11f88373..b51cff59f54490a14fa99755c49fd42290c059d8 100644 (file)
@@ -80,6 +80,8 @@ fetch_attrib4(const void *ptr, enum pipe_format format, float attrib[4])
       break;
 
    case PIPE_FORMAT_A8R8G8B8_UNORM:
+   case PIPE_FORMAT_U_A8_R8_G8_B8:
+   case PIPE_FORMAT_R8G8B8A8_UNORM:
       attrib[0] = (float) ((unsigned char *) ptr)[2] / 255.0f;
       attrib[1] = (float) ((unsigned char *) ptr)[1] / 255.0f;
       attrib[2] = (float) ((unsigned char *) ptr)[0] / 255.0f;