-I$(TOP)/src/mesa/swrast \
-I$(TOP)/src/mesa/swrast_setup
-# Of course we're direct rendering. Redundant #ifdefs in the code
-# from prehistory require this:
-#
-DEFINES += -DGLX_DIRECT_RENDERING
-
##### RULES #####
.c.o:
*/
-#ifdef GLX_DIRECT_RENDERING
-
#include <assert.h>
#include <stdarg.h>
#include <unistd.h>
}
/*@}*/
-
-#endif /* GLX_DIRECT_RENDERING */
#ifndef _DRI_UTIL_H_
#define _DRI_UTIL_H_
-#ifdef GLX_DIRECT_RENDERING
-
#define CAPI /* XXX this should be globally defined somewhere */
#ifdef DRI_NEW_INTERFACE_ONLY
(*glXGetProcAddress(const GLubyte *procname))( void );
#endif
-#endif /* GLX_DIRECT_RENDERING */
-
#endif /* _DRI_UTIL_H_ */
* David S. Miller <davem@redhat.com>
*/
-#ifdef GLX_DIRECT_RENDERING
-
#include "ffb_xmesa.h"
#include "context.h"
#include "matrix.h"
psp = __driUtilCreateScreen(dpy, scrn, psc, numConfigs, config, &ffbAPI);
return (void *) psp;
}
-
-
-#endif /* GLX_DIRECT_RENDERING */
#ifndef _FFB_XMESA_H_
#define _FFB_XMESA_H_
-#ifdef GLX_DIRECT_RENDERING
-
#include <sys/time.h>
#include "dri_util.h"
#include "mtypes.h"
int rp_active;
} ffbScreenPrivate;
-#endif /* GLX_DIRECT_RENDERING */
-
#endif /* !(_FFB_XMESA_H) */
#ifndef __GAMMA_LOCK_H__
#define __GAMMA_LOCK_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void gammaGetLock( gammaContextPtr gmesa, GLuint flags );
/* Turn DEBUG_LOCKING on to find locking conflicts.
DEBUG_RESET(); \
} while (0)
-#endif
-
#define GAMMAHW_LOCK( gmesa ) \
DRM_UNLOCK(gmesa->driFd, gmesa->driHwLock, gmesa->hHWContext); \
DRM_SPINLOCK(&gmesa->driScreen->pSAREA->drawable_lock, \
#ifndef _GAMMA_MACROS_H_
#define _GAMMA_MACROS_H_
-#ifdef GLX_DIRECT_RENDERING
-
#define DEBUG_DRMDMA
#define DEBUG_ERRORS
#define DEBUG_COMMANDS_NOT
while (__s > 1) { ++l2; __s >>= 1; } \
} while (0)
-#endif
-
#endif /* _GAMMA_MACROS_H_ */
#ifndef __MACH64_CONTEXT_H__
#define __MACH64_CONTEXT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "dri_util.h"
#include "drm.h"
#include "mach64_drm.h"
#define DEBUG_VERBOSE_PRIMS 0x040
#define DEBUG_VERBOSE_COUNT 0x080
#define DEBUG_NOWAIT 0x100
-#endif
#endif /* __MACH64_CONTEXT_H__ */
#ifndef __MACH64_DD_H__
#define __MACH64_DD_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void mach64InitDriverFuncs( struct dd_function_table *functions );
#endif
-#endif
#ifndef __MACH64_IOCTL_H__
#define __MACH64_IOCTL_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "mach64_dri.h"
#include "mach64_reg.h"
#include "mach64_lock.h"
} while (0)
-#endif
#endif /* __MACH64_IOCTL_H__ */
#ifndef __MACH64_LOCK_H__
#define __MACH64_LOCK_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void mach64GetLock( mach64ContextPtr mmesa, GLuint flags );
DEBUG_RESET(); \
} while (0)
-#endif
#endif /* __MACH64_LOCK_H__ */
#ifndef __MACH64_REG_H__
#define __MACH64_REG_H__
-#ifdef GLX_DIRECT_RENDERING
-
/*
* Not sure how this compares with the G200, but the Rage Pro has two
* banks of registers, with bank 0 at (aperture base + memmap offset - 1KB)
#define MACH64_LAST_FRAME_REG MACH64_PAT_REG0
#define MACH64_LAST_DISPATCH_REG MACH64_PAT_REG1
-#endif
#endif /* __MACH64_REG_H__ */
#ifndef __MACH64_SCREEN_H__
#define __MACH64_SCREEN_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "xmlconfig.h"
typedef struct {
driOptionCache optionCache;
} mach64ScreenRec, *mach64ScreenPtr;
-#endif
#endif /* __MACH64_SCREEN_H__ */
#ifndef __MACH64_SPAN_H__
#define __MACH64_SPAN_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void mach64DDInitSpanFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __MACH64_STATE_H__
#define __MACH64_STATE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "mach64_context.h"
extern void mach64DDInitState( mach64ContextPtr mmesa );
extern void mach64EmitHwStateLocked( mach64ContextPtr mmesa );
#endif
-#endif
#ifndef __MACH64_TEX_H__
#define __MACH64_TEX_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void mach64UpdateTextureState( GLcontext *ctx );
extern void mach64SwapOutTexObj( mach64ContextPtr mach64ctx,
}
#endif
-#endif
#ifndef _MGA_INIT_H_
#define _MGA_INIT_H_
-#ifdef GLX_DIRECT_RENDERING
-
#include <sys/time.h>
#include "dri_util.h"
#include "mga_drm.h"
#define MGA_WRITE( reg, val ) do { MGA_DEREF( reg ) = val; } while (0)
#endif
-#endif
#ifndef __R128_CONTEXT_H__
#define __R128_CONTEXT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "dri_util.h"
#include "drm.h"
#include "r128_drm.h"
#define DEBUG_VERBOSE_2D 0x40
#define DEBUG_VERBOSE_FALL 0x80
-#endif
#endif /* __R128_CONTEXT_H__ */
#ifndef __R128_DD_H__
#define __R128_DD_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r128InitDriverFuncs( struct dd_function_table *functions );
#endif
-#endif
#ifndef __R128_IOCTL_H__
#define __R128_IOCTL_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "r128_dri.h"
#include "r128_reg.h"
#include "r128_lock.h"
UNLOCK_HARDWARE( rmesa ); \
} while (0)
-#endif
#endif /* __R128_IOCTL_H__ */
#ifndef __R128_LOCK_H__
#define __R128_LOCK_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r128GetLock( r128ContextPtr rmesa, GLuint flags );
/* Turn DEBUG_LOCKING on to find locking conflicts.
DEBUG_RESET(); \
} while (0)
-#endif
#endif /* __R128_LOCK_H__ */
#ifndef __R128_SCREEN_H__
#define __R128_SCREEN_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "xmlconfig.h"
typedef struct {
} r128ScreenRec, *r128ScreenPtr;
-#endif
#endif /* __R128_SCREEN_H__ */
#ifndef __R128_SPAN_H__
#define __R128_SPAN_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r128DDInitSpanFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __R128_STATE_H__
#define __R128_STATE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "r128_context.h"
extern void r128DDInitState( r128ContextPtr rmesa );
extern void r128EmitHwStateLocked( r128ContextPtr rmesa );
#endif
-#endif
#ifndef __R128_TEX_H__
#define __R128_TEX_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r128UpdateTextureState( GLcontext *ctx );
extern void r128UploadTexImages( r128ContextPtr rmesa, r128TexObjPtr t );
}
}
-#endif
#endif /* __R128_TEX_H__ */
#ifndef __R200_CONTEXT_H__
#define __R200_CONTEXT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "tnl/t_vertex.h"
#include "drm.h"
#include "radeon_drm.h"
#define DEBUG_PIXEL 0x2000
#define DEBUG_MEMORY 0x4000
-#endif
#endif /* __R200_CONTEXT_H__ */
#ifndef __R200_IOCTL_H__
#define __R200_IOCTL_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "simple_list.h"
#include "radeon_dri.h"
#include "r200_lock.h"
return head;
}
-
-
-
-#endif
#endif /* __R200_IOCTL_H__ */
#ifndef __R200_LOCK_H__
#define __R200_LOCK_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r200GetLock( r200ContextPtr rmesa, GLuint flags );
/* Turn DEBUG_LOCKING on to find locking conflicts.
DEBUG_RESET(); \
} while (0)
-#endif
#endif /* __R200_LOCK_H__ */
#ifndef __R200_MAOS_H__
#define __R200_MAOS_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "r200_context.h"
extern void r200EmitArrays( GLcontext *ctx, GLuint inputs );
extern void r200ReleaseArrays( GLcontext *ctx, GLuint newinputs );
#endif
-#endif
#ifndef __R200_PIXEL_H__
#define __R200_PIXEL_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r200InitPixelFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __R200_SCREEN_H__
#define __R200_SCREEN_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "xf86drm.h"
#include "drm.h"
#include "radeon_drm.h"
driOptionCache optionCache;
} r200ScreenRec, *r200ScreenPtr;
-#endif
#endif /* __R200_SCREEN_H__ */
#ifndef __R200_SPAN_H__
#define __R200_SPAN_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r200InitSpanFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __R200_STATE_H__
#define __R200_STATE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "r200_context.h"
extern void r200InitState( r200ContextPtr rmesa );
extern void r200LightingSpaceChange( GLcontext *ctx );
#endif
-#endif
#ifndef __R200_TCL_H__
#define __R200_TCL_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "r200_context.h"
extern void r200TclPrimitive( GLcontext *ctx, GLenum prim, int hw_prim );
#define TCL_FALLBACK( ctx, bit, mode ) r200TclFallback( ctx, bit, mode )
-
-#endif
#endif
#ifndef __R200_TEX_H__
#define __R200_TEX_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void r200UpdateTextureState( GLcontext *ctx );
extern int r200UploadTexImages( r200ContextPtr rmesa, r200TexObjPtr t, GLuint face );
extern void r200InitTextureFuncs( struct dd_function_table *functions );
-#endif
#endif /* __R200_TEX_H__ */
#ifndef __R200_VTXFMT_H__
#define __R200_VTXFMT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "r200_context.h"
struct dynfn *r200_makeX86MultiTexCoord1fARB( GLcontext *, const int * );
struct dynfn *r200_makeX86MultiTexCoord1fvARB( GLcontext *, const int * );
-
-#endif
#endif
#ifndef __RADEON_CONTEXT_H__
#define __RADEON_CONTEXT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "dri_util.h"
#include "drm.h"
#include "radeon_drm.h"
#define DEBUG_SANITY 0x800
#define DEBUG_SYNC 0x1000
-#endif
#endif /* __RADEON_CONTEXT_H__ */
#ifndef __RADEON_IOCTL_H__
#define __RADEON_IOCTL_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "simple_list.h"
#include "radeon_lock.h"
}
}
-
-
-
-#endif
#endif /* __RADEON_IOCTL_H__ */
#ifndef __RADEON_LOCK_H__
#define __RADEON_LOCK_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void radeonGetLock( radeonContextPtr rmesa, GLuint flags );
/* Turn DEBUG_LOCKING on to find locking conflicts.
DEBUG_RESET(); \
} while (0)
-#endif
#endif /* __RADEON_LOCK_H__ */
#ifndef __RADEON_MAOS_H__
#define __RADEON_MAOS_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "radeon_context.h"
extern void radeonEmitArrays( GLcontext *ctx, GLuint inputs );
extern void radeonReleaseArrays( GLcontext *ctx, GLuint newinputs );
#endif
-#endif
#ifndef __RADEON_SCREEN_H__
#define __RADEON_SCREEN_H__
-#ifdef GLX_DIRECT_RENDERING
-
/*
* IMPORTS: these headers contain all the DRI, X and kernel-related
* definitions that we need.
extern radeonScreenPtr radeonCreateScreen( __DRIscreenPrivate *sPriv );
extern void radeonDestroyScreen( __DRIscreenPrivate *sPriv );
-#endif
#endif /* __RADEON_SCREEN_H__ */
#ifndef __RADEON_SPAN_H__
#define __RADEON_SPAN_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void radeonInitSpanFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __RADEON_STATE_H__
#define __RADEON_STATE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "radeon_context.h"
extern void radeonInitState( radeonContextPtr rmesa );
#define TEXMAT_2 5
#endif
-#endif
#ifndef __RADEON_TCL_H__
#define __RADEON_TCL_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "radeon_context.h"
extern void radeonTclPrimitive( GLcontext *ctx, GLenum prim, int hw_prim );
#define TCL_FALLBACK( ctx, bit, mode ) radeonTclFallback( ctx, bit, mode )
-
-#endif
#endif
#ifndef __RADEON_TEX_H__
#define __RADEON_TEX_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void radeonUpdateTextureState( GLcontext *ctx );
extern int radeonUploadTexImages( radeonContextPtr rmesa, radeonTexObjPtr t,
extern void radeonInitTextureFuncs( struct dd_function_table *functions );
-#endif
#endif /* __RADEON_TEX_H__ */
#ifndef __RADEON_VTXFMT_H__
#define __RADEON_VTXFMT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "radeon_context.h"
struct dynfn *radeon_makeX86MultiTexCoord1fARB( GLcontext *, int );
struct dynfn *radeon_makeX86MultiTexCoord1fvARB( GLcontext *, int );
-
-#endif
#endif
#include <sys/ioctl.h>
-#ifdef GLX_DIRECT_RENDERING
-
extern void s3vGetLock( s3vContextPtr vmesa, GLuint flags );
/* Turn DEBUG_LOCKING on to find locking conflicts.
DEBUG_RESET(); \
} while (0)
-#endif
-
#define S3VHW_LOCK( vmesa ) \
DRM_UNLOCK(vmesa->driFd, vmesa->driHwLock, vmesa->hHWContext); \
DRM_SPINLOCK(&vmesa->driScreen->pSAREA->drawable_lock, \
#ifndef _S3V_MACROS_H_
#define _S3V_MACROS_H_
-#ifdef GLX_DIRECT_RENDERING
-
/**************/
/* DRI macros */
/**************/
DEBUG(("GOING HOME\n")); \
} while (0)
-#endif
-
/**************************/
/* generic, global macros */
/**************************/
#ifndef _SAVAGE_INIT_H_
#define _SAVAGE_INIT_H_
-#ifdef GLX_DIRECT_RENDERING
-
#include <sys/time.h>
#include "dri_util.h"
#include "mtypes.h"
};
#endif
-#endif
*/
-#ifdef GLX_DIRECT_RENDERING
-
#include <X11/Xlibint.h>
#include <stdio.h>
return (void *) psp;
}
#endif /* USE_NEW_INTERFACE */
-
-#endif
#include "sis_debug.h"
#endif
-#ifdef GLX_DIRECT_RENDERING
-# include <stdio.h>
-# include <stdlib.h>
-# include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
typedef struct _Box
{
short x1, y1, x2, y2;
BoxRec;
#define NullBox ((BoxPtr)0)
typedef struct _Box *BoxPtr;
-#endif /* GLX_DIRECT_RENDERING */
/* BitBlt Commands */
#define CMD0_DD_ENABLE 0x06
#ifndef __SIS_DD_H__
#define __SIS_DD_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void sisUpdateBufferSize( sisContextPtr smesa );
extern void sisInitDriverFuncs( struct dd_function_table *functions );
#endif
-#endif
#ifndef __SIS_SPAN_H__
#define __SIS_SPAN_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void sisSpanRenderStart( GLcontext *ctx );
extern void sisSpanRenderFinish( GLcontext *ctx );
extern void sisDDInitSpanFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __SIS_STATE_H__
#define __SIS_STATE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "sis_context.h"
extern void sisDDInitState( sisContextPtr smesa );
extern void sisUpdateHWState( GLcontext *ctx );
#endif
-#endif
#ifndef __SIS_STENCIL_H__
#define __SIS_STENCIL_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void sisDDInitStencilFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __SIS_TEX_H__
#define __SIS_TEX_H__
-#ifdef GLX_DIRECT_RENDERING
-
extern void sisInitTextureFuncs( struct dd_function_table *table );
extern void sisUpdateTextureState( GLcontext *ctx );
-#endif /* GLX_DIRECT_RENDERING */
#endif /* __SIS_TEX_H__ */
#ifndef __DRI_GLIDE_H__
#define __DRI_GLIDE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include <glide.h>
#include "dri_mesaint.h"
extern void grDRIResetSAREA( void );
extern void grDRIBufferSwap( FxU32 swapInterval );
#endif
-#endif
#ifndef __TDFX_CONTEXT_H__
#define __TDFX_CONTEXT_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include <sys/time.h>
#include "dri_util.h"
#ifdef XFree86Server
#define FX_COMPRESS_S3TC_AS_FXT1_HACK 1
#define FX_TC_NAPALM 0
-#endif /* GLX_DIRECT_RENDERING */
-
#endif /* __TDFX_CONTEXT_H__ */
#ifndef __TDFX_DD_H__
#define __TDFX_DD_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "context.h"
extern void tdfxDDInitDriverFuncs( const __GLcontextModes *visual,
struct dd_function_table *functions );
#endif
-#endif
#ifndef __TDFX_LOCK_H__
#define __TDFX_LOCK_H__
-#ifdef GLX_DIRECT_RENDERING
-
/* You can turn this on to find locking conflicts.
*/
#define DEBUG_LOCKING 0
UNLOCK_HARDWARE( fxMesa ); \
} while (0)
-
-#endif /* GLX_DIRECT_RENDERING */
-
#endif /* __TDFX_LOCK_H__ */
#ifndef __TDFX_PIXELS_H__
#define __TDFX_PIXELS_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "context.h"
extern void
const GLvoid *pixels );
#endif
-#endif
#ifndef __TDFX_RENDER_H__
#define __TDFX_RENDER_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "tdfx_context.h"
extern void tdfxInitRenderFuncs( struct dd_function_table *functions );
#define FLUSH_BATCH( fxMesa )
-
-#endif
#endif
#ifndef __TDFX_SCREEN_H__
#define __TDFX_SCREEN_H__
-#ifdef GLX_DIRECT_RENDERING
-
typedef struct {
drm_handle_t handle;
drmSize size;
#endif
-#endif
#ifndef __TDFX_SPAN_H__
#define __TDFX_SPAN_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "context.h"
extern void tdfxDDInitSpanFuncs( GLcontext *ctx );
#endif
-#endif
#ifndef __TDFX_STATE_H__
#define __TDFX_STATE_H__
-#ifdef GLX_DIRECT_RENDERING
-
#include "context.h"
#include "tdfx_context.h"
#endif
-#endif