diff options
author | Luc Verhaegen <libv@skynet.be> | 2010-03-04 14:45:46 +0100 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2010-03-09 07:36:41 +0100 |
commit | fadde9dbbefd56f869398f2c5cfeb8cc48c072fe (patch) | |
tree | 14a1903a0c43e7553bc3fb4ac7cad931d7e27dba /src | |
parent | 27550c48a797068c8285e8aa25646f4568b953f0 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/mach64_context.c | 14 | ||||
-rw-r--r-- | src/mach64_context.h | 10 | ||||
-rw-r--r-- | src/mach64_dd.c | 7 | ||||
-rw-r--r-- | src/mach64_dd.h | 2 | ||||
-rw-r--r-- | src/mach64_ioctl.c | 6 | ||||
-rw-r--r-- | src/mach64_ioctl.h | 2 | ||||
-rw-r--r-- | src/mach64_lock.c | 2 | ||||
-rw-r--r-- | src/mach64_lock.h | 2 | ||||
-rw-r--r-- | src/mach64_native_vb.c | 2 | ||||
-rw-r--r-- | src/mach64_native_vbtmp.h | 2 | ||||
-rw-r--r-- | src/mach64_reg.h | 2 | ||||
-rw-r--r-- | src/mach64_screen.c | 14 | ||||
-rw-r--r-- | src/mach64_screen.h | 2 | ||||
-rw-r--r-- | src/mach64_span.c | 2 | ||||
-rw-r--r-- | src/mach64_span.h | 2 | ||||
-rw-r--r-- | src/mach64_state.c | 8 | ||||
-rw-r--r-- | src/mach64_state.h | 2 | ||||
-rw-r--r-- | src/mach64_tex.c | 20 | ||||
-rw-r--r-- | src/mach64_tex.h | 2 | ||||
-rw-r--r-- | src/mach64_texmem.c | 12 | ||||
-rw-r--r-- | src/mach64_texstate.c | 12 | ||||
-rw-r--r-- | src/mach64_tris.c | 10 | ||||
-rw-r--r-- | src/mach64_tris.h | 4 | ||||
-rw-r--r-- | src/mach64_vb.c | 12 | ||||
-rw-r--r-- | src/mach64_vb.h | 4 | ||||
-rw-r--r-- | src/mach64_vbtmp.h | 2 | ||||
-rw-r--r-- | src/server/mach64_dri.h | 2 |
27 files changed, 84 insertions, 77 deletions
diff --git a/src/mach64_context.c b/src/mach64_context.c index f730c83..99abd20 100644 --- a/src/mach64_context.c +++ b/src/mach64_context.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -29,12 +29,12 @@ * Jos�Fonseca <j_r_fonseca@yahoo.co.uk> */ -#include "glheader.h" -#include "context.h" -#include "simple_list.h" -#include "imports.h" -#include "matrix.h" -#include "extensions.h" +#include "main/glheader.h" +#include "main/context.h" +#include "main/simple_list.h" +#include "main/imports.h" +#include "main/matrix.h" +#include "main/extensions.h" #include "swrast/swrast.h" #include "swrast_setup/swrast_setup.h" diff --git a/src/mach64_context.h b/src/mach64_context.h index c602333..8547516 100644 --- a/src/mach64_context.h +++ b/src/mach64_context.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -36,7 +36,7 @@ #include "drm.h" #include "mach64_drm.h" -#include "mtypes.h" +#include "main/mtypes.h" #include "mach64_reg.h" @@ -294,7 +294,13 @@ extern GLboolean mach64UnbindContext( __DRIcontextPrivate *driContextPriv ); #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0) #else +#ifndef __OpenBSD__ #include <byteswap.h> +#else +#include <machine/endian.h> +#define bswap_32 bswap32 +#endif + #define LE32_IN( x ) bswap_32( *(GLuint *)(x) ) #define LE32_IN_FLOAT( x ) \ ({ \ diff --git a/src/mach64_dd.c b/src/mach64_dd.c index 17e8d74..e400e9a 100644 --- a/src/mach64_dd.c +++ b/src/mach64_dd.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -35,9 +35,10 @@ #include "mach64_vb.h" #include "mach64_dd.h" -#include "context.h" +#include "main/context.h" +#include "main/framebuffer.h" + #include "utils.h" -#include "framebuffer.h" #define DRIVER_DATE "20051019" diff --git a/src/mach64_dd.h b/src/mach64_dd.h index 74cf1d3..0a2ce06 100644 --- a/src/mach64_dd.h +++ b/src/mach64_dd.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_ioctl.c b/src/mach64_ioctl.c index 3bcec50..ef5c062 100644 --- a/src/mach64_ioctl.c +++ b/src/mach64_ioctl.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -35,8 +35,8 @@ #include "mach64_ioctl.h" #include "mach64_tex.h" -#include "imports.h" -#include "macros.h" +#include "main/imports.h" +#include "main/macros.h" #include "swrast/swrast.h" diff --git a/src/mach64_ioctl.h b/src/mach64_ioctl.h index 3e5faff..6ef9bc0 100644 --- a/src/mach64_ioctl.h +++ b/src/mach64_ioctl.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_lock.c b/src/mach64_lock.c index 13e212b..d018ba4 100644 --- a/src/mach64_lock.c +++ b/src/mach64_lock.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_lock.h b/src/mach64_lock.h index 973880e..3130b18 100644 --- a/src/mach64_lock.h +++ b/src/mach64_lock.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_native_vb.c b/src/mach64_native_vb.c index 248fa2a..99f1a14 100644 --- a/src/mach64_native_vb.c +++ b/src/mach64_native_vb.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Mesa 3-D graphics library * Version: 3.5 diff --git a/src/mach64_native_vbtmp.h b/src/mach64_native_vbtmp.h index f64b808..684f2ac 100644 --- a/src/mach64_native_vbtmp.h +++ b/src/mach64_native_vbtmp.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Mesa 3-D graphics library * Version: 3.5 diff --git a/src/mach64_reg.h b/src/mach64_reg.h index abbba29..cb944e1 100644 --- a/src/mach64_reg.h +++ b/src/mach64_reg.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_screen.c b/src/mach64_screen.c index 2dba50f..6bfb4c3 100644 --- a/src/mach64_screen.c +++ b/src/mach64_screen.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -35,10 +35,10 @@ #include "mach64_vb.h" #include "mach64_span.h" -#include "context.h" -#include "imports.h" -#include "framebuffer.h" -#include "renderbuffer.h" +#include "main/context.h" +#include "main/imports.h" +#include "main/framebuffer.h" +#include "main/renderbuffer.h" #include "utils.h" #include "vblank.h" @@ -91,8 +91,8 @@ mach64FillInModes( __DRIscreenPrivate *psp, GLX_NONE, GLX_SWAP_UNDEFINED_OML /*, GLX_SWAP_COPY_OML */ }; - u_int8_t depth_bits_array[2]; - u_int8_t stencil_bits_array[2]; + uint8_t depth_bits_array[2]; + uint8_t stencil_bits_array[2]; depth_bits_array[0] = depth_bits; depth_bits_array[1] = depth_bits; diff --git a/src/mach64_screen.h b/src/mach64_screen.h index 766554d..be5e29a 100644 --- a/src/mach64_screen.h +++ b/src/mach64_screen.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_span.c b/src/mach64_span.c index aa8c725..91d46ce 100644 --- a/src/mach64_span.c +++ b/src/mach64_span.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_span.h b/src/mach64_span.h index 0f4c766..65141d0 100644 --- a/src/mach64_span.h +++ b/src/mach64_span.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_state.c b/src/mach64_state.c index 10a5b40..3a02318 100644 --- a/src/mach64_state.c +++ b/src/mach64_state.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -36,9 +36,9 @@ #include "mach64_vb.h" #include "mach64_tex.h" -#include "context.h" -#include "enums.h" -#include "colormac.h" +#include "main/context.h" +#include "main/enums.h" +#include "main/colormac.h" #include "swrast/swrast.h" #include "vbo/vbo.h" #include "tnl/tnl.h" diff --git a/src/mach64_state.h b/src/mach64_state.h index 95bcab3..23081cb 100644 --- a/src/mach64_state.h +++ b/src/mach64_state.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_tex.c b/src/mach64_tex.c index 5288d32..1f9d3c5 100644 --- a/src/mach64_tex.c +++ b/src/mach64_tex.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -36,15 +36,15 @@ #include "mach64_tris.h" #include "mach64_tex.h" -#include "context.h" -#include "macros.h" -#include "simple_list.h" -#include "enums.h" -#include "texstore.h" -#include "texformat.h" -#include "teximage.h" -#include "texobj.h" -#include "imports.h" +#include "main/context.h" +#include "main/macros.h" +#include "main/simple_list.h" +#include "main/enums.h" +#include "main/texstore.h" +#include "main/texformat.h" +#include "main/teximage.h" +#include "main/texobj.h" +#include "main/imports.h" static void mach64SetTexWrap( mach64TexObjPtr t, diff --git a/src/mach64_tex.h b/src/mach64_tex.h index 933cfbb..8e0b23e 100644 --- a/src/mach64_tex.h +++ b/src/mach64_tex.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. diff --git a/src/mach64_texmem.c b/src/mach64_texmem.c index 3b7b93b..734e547 100644 --- a/src/mach64_texmem.c +++ b/src/mach64_texmem.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 1999, 2000 ATI Technologies Inc. and Precision Insight, Inc., * Cedar Park, Texas. @@ -38,11 +38,11 @@ #include "mach64_tris.h" #include "mach64_tex.h" -#include "context.h" -#include "macros.h" -#include "simple_list.h" -#include "texformat.h" -#include "imports.h" +#include "main/context.h" +#include "main/macros.h" +#include "main/simple_list.h" +#include "main/texformat.h" +#include "main/imports.h" /* Destroy hardware state associated with texture `t'. diff --git a/src/mach64_texstate.c b/src/mach64_texstate.c index 3ace370..fd2369d 100644 --- a/src/mach64_texstate.c +++ b/src/mach64_texstate.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -29,11 +29,11 @@ * José Fonseca <j_r_fonseca@yahoo.co.uk> */ -#include "glheader.h" -#include "imports.h" -#include "context.h" -#include "macros.h" -#include "texformat.h" +#include "main/glheader.h" +#include "main/imports.h" +#include "main/context.h" +#include "main/macros.h" +#include "main/texformat.h" #include "mach64_context.h" #include "mach64_ioctl.h" diff --git a/src/mach64_tris.c b/src/mach64_tris.c index 5ce348f..f2e8e2e 100644 --- a/src/mach64_tris.c +++ b/src/mach64_tris.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -29,10 +29,10 @@ * José Fonseca <j_r_fonseca@yahoo.co.uk> */ -#include "glheader.h" -#include "mtypes.h" -#include "colormac.h" -#include "macros.h" +#include "main/glheader.h" +#include "main/mtypes.h" +#include "main/colormac.h" +#include "main/macros.h" #include "swrast/swrast.h" #include "swrast_setup/swrast_setup.h" diff --git a/src/mach64_tris.h b/src/mach64_tris.h index 2087032..042df42 100644 --- a/src/mach64_tris.h +++ b/src/mach64_tris.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -31,7 +31,7 @@ #ifndef __MACH64_TRIS_H__ #define __MACH64_TRIS_H__ -#include "mtypes.h" +#include "main/mtypes.h" extern void mach64InitTriFuncs( GLcontext *ctx ); diff --git a/src/mach64_vb.c b/src/mach64_vb.c index 83a5f73..e58812e 100644 --- a/src/mach64_vb.c +++ b/src/mach64_vb.c @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -29,11 +29,11 @@ * José Fonseca <j_r_fonseca@yahoo.co.uk> */ -#include "glheader.h" -#include "mtypes.h" -#include "imports.h" -#include "macros.h" -#include "colormac.h" +#include "main/glheader.h" +#include "main/mtypes.h" +#include "main/imports.h" +#include "main/macros.h" +#include "main/colormac.h" #include "swrast_setup/swrast_setup.h" #include "tnl/t_context.h" diff --git a/src/mach64_vb.h b/src/mach64_vb.h index bcc4759..e0b3669 100644 --- a/src/mach64_vb.h +++ b/src/mach64_vb.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. @@ -32,7 +32,7 @@ #ifndef __MACH64_VB_H__ #define __MACH64_VB_H__ -#include "mtypes.h" +#include "main/mtypes.h" #include "swrast/swrast.h" #include "mach64_context.h" diff --git a/src/mach64_vbtmp.h b/src/mach64_vbtmp.h index c1207ca..938804a 100644 --- a/src/mach64_vbtmp.h +++ b/src/mach64_vbtmp.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Mesa 3-D graphics library * Version: 3.5 diff --git a/src/server/mach64_dri.h b/src/server/mach64_dri.h index 139668e..1477443 100644 --- a/src/server/mach64_dri.h +++ b/src/server/mach64_dri.h @@ -1,4 +1,4 @@ -/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */ +/* -*- mode: c; c-basic-offset: 3 -*- */ /* * Copyright 2000 Gareth Hughes * All Rights Reserved. |