aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/vk_format_table.py
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-09-06 15:13:22 -0700
committerDylan Baker <[email protected]>2019-11-05 16:39:55 +0000
commitf9f60da813e69aacf541d25a24622c896f15ba98 (patch)
treece1ba60e57b85a9ea16cfe12efcf3e1ab994d596 /src/amd/vulkan/vk_format_table.py
parent37e54736a7bab3397e316ae4493c2e3d4aebfa5e (diff)
util/u_endian: set PIPE_ARCH_*_ENDIAN to 1
This will allow it to be used as a drop in replacement for _mesa_little_endian in a number of cases. v2: - Always define PIPE_ARCH_LITTLE_ENDIAN and PIPE_ARCH_BIG_ENDIAN, define the one that reflects the host system to 1 and the other to 0 - replace all uses of #ifdef, #ifndef, and #if defined() with #if and #if ! with PIPE_ARCH_*_ENDIAN Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/amd/vulkan/vk_format_table.py')
-rw-r--r--src/amd/vulkan/vk_format_table.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/vk_format_table.py b/src/amd/vulkan/vk_format_table.py
index 420c3f96abc..2993b593cc4 100644
--- a/src/amd/vulkan/vk_format_table.py
+++ b/src/amd/vulkan/vk_format_table.py
@@ -80,7 +80,7 @@ def print_channels(format, func):
if format.nr_channels() <= 1:
func(format.le_channels, format.le_swizzles)
else:
- print('#ifdef PIPE_ARCH_BIG_ENDIAN')
+ print('#if PIPE_ARCH_BIG_ENDIAN')
func(format.be_channels, format.be_swizzles)
print('#else')
func(format.le_channels, format.le_swizzles)