aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2013-11-07 23:19:30 +1300
committerChris Forbes <[email protected]>2013-11-08 09:10:06 +1300
commit7a95bb0a80075c7708f03cc0115177d8ed3070cb (patch)
tree3a1a324008bcc50d7a95c472b7a695dd1b2ad023 /src/mesa/drivers
parent48b6d70bef7c2c151a0cdd2a4ccb46cd7f5a6ab3 (diff)
i965: add support for UNSIGNED_INT_10F_11F_11F_REV vertex attribs
Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 4da1b7eb410..e2002e8ebc6 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -244,6 +244,8 @@ brw_get_vertex_surface_type(struct brw_context *brw,
case GL_UNSIGNED_BYTE: return ubyte_types_direct[size];
default: assert(0); return 0;
}
+ } else if (glarray->Type == GL_UNSIGNED_INT_10F_11F_11F_REV) {
+ return BRW_SURFACEFORMAT_R11G11B10_FLOAT;
} else if (glarray->Normalized) {
switch (glarray->Type) {
case GL_DOUBLE: return double_types[size];