summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_bptc.c
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-09-06 15:14:24 -0700
committerDylan Baker <[email protected]>2019-11-05 16:39:55 +0000
commit453d52acd8f9de9ed06b9e65bfba1baaf607cf96 (patch)
tree0b626ee6cf96091baa37e96ec42fcafe6c11615a /src/mesa/main/texcompress_bptc.c
parentf9f60da813e69aacf541d25a24622c896f15ba98 (diff)
mesa/main: replace uses of _mesa_little_endian with preprocessor
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/main/texcompress_bptc.c')
-rw-r--r--src/mesa/main/texcompress_bptc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/texcompress_bptc.c b/src/mesa/main/texcompress_bptc.c
index 46279f144ff..d7f4ecf9abb 100644
--- a/src/mesa/main/texcompress_bptc.c
+++ b/src/mesa/main/texcompress_bptc.c
@@ -142,8 +142,11 @@ _mesa_texstore_bptc_rgba_unorm(TEXSTORE_PARAMS)
tempImageSlices[0] = (GLubyte *) tempImage;
_mesa_texstore(ctx, dims,
baseInternalFormat,
- _mesa_little_endian() ? MESA_FORMAT_R8G8B8A8_UNORM
- : MESA_FORMAT_A8B8G8R8_UNORM,
+#if PIPE_ARCH_LITTLE_ENDIAN
+ MESA_FORMAT_R8G8B8A8_UNORM,
+#else
+ MESA_FORMAT_A8B8G8R8_UNORM,
+#endif
rgbaRowStride, tempImageSlices,
srcWidth, srcHeight, srcDepth,
srcFormat, srcType, srcAddr,