Mesa (master): r600g: add 10/10/10/2 vertex format conversion.
Dave Airlie
airlied at kemper.freedesktop.org
Mon Sep 5 18:08:42 UTC 2011
Module: Mesa
Branch: master
Commit: f9b7d3bd4a744537db29f8688cf4c4109fb19ab1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9b7d3bd4a744537db29f8688cf4c4109fb19ab1
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Sep 5 15:03:34 2011 +0100
r600g: add 10/10/10/2 vertex format conversion.
---
src/gallium/drivers/r600/r600_asm.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 27febdf..523c531 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2077,6 +2077,12 @@ static void r600_vertex_data_type(enum pipe_format pformat, unsigned *format,
break;
}
break;
+ case 10:
+ if (desc->nr_channels != 4)
+ goto out_unknown;
+
+ *format = FMT_2_10_10_10;
+ break;
case 16:
switch (desc->nr_channels) {
case 1:
More information about the mesa-commit
mailing list