From f9b7d3bd4a744537db29f8688cf4c4109fb19ab1 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 5 Sep 2011 15:03:34 +0100 Subject: r600g: add 10/10/10/2 vertex format conversion. --- src/gallium/drivers/r600/r600_asm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 27febdf9d03..523c5313df2 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: -- cgit v1.2.3