diff options
author | Marek Olšák <[email protected]> | 2013-10-31 15:20:06 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-11-04 19:07:57 +0100 |
commit | a767f57a7d755944a3f3db853767cac727ae761a (patch) | |
tree | aa102c33bd8aecef6b5c5661ec0b8eb16b04be79 /src/gallium/drivers/radeonsi | |
parent | 6a250877eaea932e2bddd35ba694e4dc38cc57cc (diff) |
radeonsi: implement ARB_vertex_type_2_10_10_10_rev
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 0d743445f7b..72368d85d9b 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -1362,6 +1362,13 @@ static uint32_t si_translate_buffer_dataformat(struct pipe_screen *screen, if (type == UTIL_FORMAT_TYPE_FIXED) return V_008F0C_BUF_DATA_FORMAT_INVALID; + if (desc->nr_channels == 4 && + desc->channel[0].size == 10 && + desc->channel[1].size == 10 && + desc->channel[2].size == 10 && + desc->channel[3].size == 2) + return V_008F0C_BUF_DATA_FORMAT_2_10_10_10; + /* See whether the components are of the same size. */ for (i = 0; i < desc->nr_channels; i++) { if (desc->channel[first_non_void].size != desc->channel[i].size) |