r600g: add support for B5G6R5 PBO uploads via texture buffers (v2)
v2: set endian swap to 16 untested
This commit is contained in:
@@ -2343,6 +2343,12 @@ void r600_vertex_data_type(enum pipe_format pformat,
|
||||
return;
|
||||
}
|
||||
|
||||
if (pformat == PIPE_FORMAT_B5G6R5_UNORM) {
|
||||
*format = FMT_5_6_5;
|
||||
*endian = r600_endian_swap(16);
|
||||
return;
|
||||
}
|
||||
|
||||
desc = util_format_description(pformat);
|
||||
if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
|
||||
goto out_unknown;
|
||||
|
Reference in New Issue
Block a user