mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
r600: Add support for B5G5R5A1.
Fixes rendercheck errors when using glamor acceleration in X server. Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
82fcf3142f
commit
e6d7937b86
1 changed files with 6 additions and 0 deletions
|
|
@ -2376,6 +2376,12 @@ void r600_vertex_data_type(enum pipe_format pformat,
|
|||
return;
|
||||
}
|
||||
|
||||
if (pformat == PIPE_FORMAT_B5G5R5A1_UNORM) {
|
||||
*format = FMT_1_5_5_5;
|
||||
*endian = r600_endian_swap(16);
|
||||
return;
|
||||
}
|
||||
|
||||
desc = util_format_description(pformat);
|
||||
if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
|
||||
goto out_unknown;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue