mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-04 22:18:14 +02:00
pixel-formats: Use a single __BYTE_ORDER macro name
This file used both __BYTE_ORDER and __BYTE_ORDER__ which could become confusing to inspect. Both appear to be valid, since it is being compared to __LITTLE_ENDIAN stick to __BYTE_ORDER for all uses. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
This commit is contained in:
parent
8c9f395c6c
commit
fef0de7d72
1 changed files with 4 additions and 4 deletions
|
|
@ -593,7 +593,7 @@ static const struct pixel_format_info pixel_format_table[] = {
|
|||
BITS_RGBA_FIXED(16, 16, 16, 0),
|
||||
.bpp = 64,
|
||||
GL_FORMAT_INFO(GL_RGBA16_EXT, GL_RGBA, GL_UNSIGNED_SHORT, RGB1),
|
||||
#if __BYTE_ORDER__ == __LITTLE_ENDIAN
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
GL_FORMAT(GL_RGBA16_EXT),
|
||||
GL_TYPE(GL_UNSIGNED_SHORT),
|
||||
VULKAN_FORMAT(VK_FORMAT_R16G16B16A16_UNORM),
|
||||
|
|
@ -606,7 +606,7 @@ static const struct pixel_format_info pixel_format_table[] = {
|
|||
.bpp = 64,
|
||||
.opaque_substitute = DRM_FORMAT_XBGR16161616,
|
||||
GL_FORMAT_INFO(GL_RGBA16_EXT, GL_RGBA, GL_UNSIGNED_SHORT, RGBA),
|
||||
#if __BYTE_ORDER__ == __LITTLE_ENDIAN
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
GL_FORMAT(GL_RGBA16_EXT),
|
||||
GL_TYPE(GL_UNSIGNED_SHORT),
|
||||
VULKAN_FORMAT(VK_FORMAT_R16G16B16A16_UNORM),
|
||||
|
|
@ -633,7 +633,7 @@ static const struct pixel_format_info pixel_format_table[] = {
|
|||
BITS_RGBA_FLOAT(16, 16, 16, 0),
|
||||
.bpp = 64,
|
||||
GL_FORMAT_INFO(GL_RGBA16F, GL_RGBA, GL_HALF_FLOAT, RGB1),
|
||||
#if __BYTE_ORDER__ == __LITTLE_ENDIAN
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
GL_FORMAT(GL_RGBA16F),
|
||||
GL_TYPE(GL_HALF_FLOAT),
|
||||
VULKAN_FORMAT(VK_FORMAT_R16G16B16A16_SFLOAT),
|
||||
|
|
@ -646,7 +646,7 @@ static const struct pixel_format_info pixel_format_table[] = {
|
|||
.bpp = 64,
|
||||
.opaque_substitute = DRM_FORMAT_XBGR16161616F,
|
||||
GL_FORMAT_INFO(GL_RGBA16F, GL_RGBA, GL_HALF_FLOAT, RGBA),
|
||||
#if __BYTE_ORDER__ == __LITTLE_ENDIAN
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
GL_FORMAT(GL_RGBA16F),
|
||||
GL_TYPE(GL_HALF_FLOAT),
|
||||
VULKAN_FORMAT(VK_FORMAT_R16G16B16A16_SFLOAT),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue