projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a25087
)
radeonsi: implement ARB_vertex_type_2_10_10_10_rev
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 31 Oct 2013 14:20:06 +0000
(15:20 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 4 Nov 2013 18:07:57 +0000
(19:07 +0100)
src/gallium/drivers/radeonsi/si_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state.c
b/src/gallium/drivers/radeonsi/si_state.c
index 0d743445f7bd6e084d92025f938c60674e719616..72368d85d9bd10959fe98352b2517dd1b46e191a 100644
(file)
--- 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)