mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa/formats: Only do byteswapping for packed formats
Reviewed-by: Iago Toral <itoral@igalia.com> Cc: "10.6 10.5" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
02a4fe22b1
commit
3941539179
1 changed files with 3 additions and 3 deletions
|
|
@ -372,10 +372,10 @@ uint32_t
|
|||
_mesa_format_to_array_format(mesa_format format)
|
||||
{
|
||||
const struct gl_format_info *info = _mesa_get_format_info(format);
|
||||
if (_mesa_little_endian())
|
||||
return info->ArrayFormat;
|
||||
else
|
||||
if (!_mesa_little_endian() && info->Layout == MESA_FORMAT_LAYOUT_PACKED)
|
||||
return _mesa_array_format_flip_channels(info->ArrayFormat);
|
||||
else
|
||||
return info->ArrayFormat;
|
||||
}
|
||||
|
||||
static struct hash_table *format_array_format_table;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue