summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/image.h')
-rw-r--r--src/mesa/main/image.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mesa/main/image.h b/src/mesa/main/image.h
index abd84bf2f87..44863cc5927 100644
--- a/src/mesa/main/image.h
+++ b/src/mesa/main/image.h
@@ -28,15 +28,28 @@
#include "glheader.h"
+#include "compiler.h"
struct gl_context;
struct gl_pixelstore_attrib;
extern void
-_mesa_swap2( GLushort *p, GLuint n );
+_mesa_swap2_copy(GLushort *dst, GLushort *src, GLuint n);
extern void
-_mesa_swap4( GLuint *p, GLuint n );
+_mesa_swap4_copy(GLuint *dst, GLuint *src, GLuint n);
+
+static inline void
+_mesa_swap2(GLushort *p, GLuint n)
+{
+ _mesa_swap2_copy(p, p, n);
+}
+
+static inline void
+_mesa_swap4(GLuint *p, GLuint n)
+{
+ _mesa_swap4_copy(p, p, n);
+}
extern GLintptr
_mesa_image_offset( GLuint dimensions,