[Mesa-dev] [PATCH] gallium: add endian detection for OpenBSD

Jonathan Gray jsg at jsg.id.au
Mon Mar 10 07:46:42 PDT 2014


On Mon, Mar 10, 2014 at 08:27:17AM -0600, Brian Paul wrote:
> On 03/10/2014 06:20 AM, Jonathan Gray wrote:
> >Still looking to have this merged...
> >
> >On Thu, Aug 15, 2013 at 12:17:27AM +1000, Jonathan Gray wrote:
> >>Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
> >>---
> >>  src/gallium/include/pipe/p_config.h | 10 ++++++++++
> >>  1 file changed, 10 insertions(+)
> >>
> >>diff --git src/gallium/include/pipe/p_config.h src/gallium/include/pipe/p_config.h
> >>index 1588a92..9af5df7 100644
> >>--- src/gallium/include/pipe/p_config.h
> >>+++ src/gallium/include/pipe/p_config.h
> >>@@ -153,6 +153,16 @@
> >>  # define PIPE_ARCH_BIG_ENDIAN
> >>  #endif
> >>
> >>+#elif defined(__OpenBSD__)
> >>+#include <sys/types.h>
> >>+#include <machine/endian.h>
> >>+
> >>+#if _BYTE_ORDER == _LITTLE_ENDIAN
> >>+# define PIPE_ARCH_LITTLE_ENDIAN
> >>+#elif _BYTE_ORDER == _BIG_ENDIAN
> >>+# define PIPE_ARCH_BIG_ENDIAN
> >>+#endif
> >>+
> >>  #else
> >>
> >>  #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) || defined(PIPE_ARCH_ARM) || defined(PIPE_ARCH_AARCH64)
> >>--
> 
> Reviewed-by: Brian Paul <brianp at vmware.com>
> 
> Do you need someone to push this to master for you?

Yes, that'd be great.

thanks


More information about the mesa-dev mailing list