diff options
author | Marek Olšák <[email protected]> | 2016-07-12 00:48:00 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-26 23:21:45 +0200 |
commit | 8636a718b543939b02217b7b503bb73e72c16548 (patch) | |
tree | 5f715a803a738c53a850f313467c7c560c875792 /src/gallium | |
parent | 1e5f00f9d5f412526d025f8f4762160ce7b5f2ba (diff) |
r600g: add support for B5G6R5 PBO uploads via texture buffers (v2)
v2: set endian swap to 16
untested
Diffstat (limited to 'src/gallium')
-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 2141cf20050..e2f54cb2ffd 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -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; |