diff options
author | Dave Airlie <[email protected]> | 2011-09-05 15:03:34 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-09-05 19:08:18 +0100 |
commit | f9b7d3bd4a744537db29f8688cf4c4109fb19ab1 (patch) | |
tree | bd9ce1e8f0b342cd13ea091b4a34f1e7af63be05 /src/gallium/drivers/r600/r600_asm.c | |
parent | 797bb0eb47d23099180133175d8dac8d97e58837 (diff) |
r600g: add 10/10/10/2 vertex format conversion.
Diffstat (limited to 'src/gallium/drivers/r600/r600_asm.c')
-rw-r--r-- | 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 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: |