summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-11-23 12:03:45 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-12-09 14:05:12 +0000
commitda47ad07ef8cf69a74f4414f7957e0749fa6f7ad (patch)
tree91aab45065d99bfd5c5b3e17017659407a7cebbe
parent73a05942766cee4e3cc200725e9760c5a9b67bb4 (diff)
gallium: add support for aliased 4ub format
-rw-r--r--src/mesa/pipe/draw/draw_vertex_fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_fetch.c b/src/mesa/pipe/draw/draw_vertex_fetch.c
index e0759c2e9a..b51cff59f5 100644
--- a/src/mesa/pipe/draw/draw_vertex_fetch.c
+++ b/src/mesa/pipe/draw/draw_vertex_fetch.c
@@ -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;