From: Dave Airlie Date: Mon, 5 Sep 2011 14:03:34 +0000 (+0100) Subject: r600g: add 10/10/10/2 vertex format conversion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9b7d3bd4a744537db29f8688cf4c4109fb19ab1;p=mesa.git r600g: add 10/10/10/2 vertex format conversion. --- 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: