diff options
author | Michal Srb <[email protected]> | 2017-07-17 09:34:44 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-07-25 19:17:03 +0200 |
commit | e6d7937b86d8f3c7e0605741de8721caf991af05 (patch) | |
tree | d4e4084db2a85919baa00999d121625fbe86d652 /src | |
parent | 82fcf3142f5dd43df530b5544350b957fd43f79f (diff) |
r600: Add support for B5G5R5A1.
Fixes rendercheck errors when using glamor acceleration in X server.
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-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 f5c0e809196..a0f28d2776b 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -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; |