projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b520dc
)
i965/tiled_memcpy: avoid creating bswap32 if it exists as a macro (e.g. on FreeBSD)
author
Greg V
<greg@unrelenting.technology>
Sat, 26 May 2018 21:36:30 +0000
(
00:36
+0300)
committer
Eric Engestrom
<eric.engestrom@intel.com>
Thu, 8 Aug 2019 20:44:33 +0000
(21:44 +0100)
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/intel/isl/isl_tiled_memcpy.c
patch
|
blob
|
history
diff --git
a/src/intel/isl/isl_tiled_memcpy.c
b/src/intel/isl/isl_tiled_memcpy.c
index 7df7835f9ab5d7416b6748dbfc776771108c3853..8771533dbab0576e8fec10d0356980b76c763f09 100644
(file)
--- a/
src/intel/isl/isl_tiled_memcpy.c
+++ b/
src/intel/isl/isl_tiled_memcpy.c
@@
-64,6
+64,8
@@
ror(uint32_t n, uint32_t d)
return (n >> d) | (n << (32 - d));
}
+// bswap32 already exists as a macro on some platforms (FreeBSD)
+#ifndef bswap32
static inline uint32_t
bswap32(uint32_t n)
{
@@
-76,6
+78,7
@@
bswap32(uint32_t n)
(n << 24);
#endif
}
+#endif
/**
* Copy RGBA to BGRA - swap R and B.