summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/xmesaP.h
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2007-04-20 17:35:01 +0300
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-04-20 21:08:53 +0300
commitd60009bd6dba15d094b0d0bcb8180b7a2e1c1708 (patch)
tree1cd80c44a9e3294306b114a1a09d10e6f1260799 /src/mesa/drivers/x11/xmesaP.h
parent535c37e85d9283f177825e7534e5d0abb4d93886 (diff)
Revert "xmesa: drop glide (FX) backend."
This reverts commit 2a2f8d806f74619f0a7cf97fdc7f7b3ad1cad81b.
Diffstat (limited to 'src/mesa/drivers/x11/xmesaP.h')
-rw-r--r--src/mesa/drivers/x11/xmesaP.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xmesaP.h b/src/mesa/drivers/x11/xmesaP.h
index 7b72e6b2f9..98d03ccf62 100644
--- a/src/mesa/drivers/x11/xmesaP.h
+++ b/src/mesa/drivers/x11/xmesaP.h
@@ -29,7 +29,10 @@
#include "GL/xmesa.h"
#include "mtypes.h"
-
+#if defined(FX)
+#include "GL/fxmesa.h"
+#include "../glide/fxdrv.h"
+#endif
#ifdef XFree86Server
#include "xm_image.h"
#endif
@@ -257,6 +260,13 @@ struct xmesa_buffer {
unsigned long alloced_colors[256];
#endif
+#if defined( FX )
+ /* For 3Dfx Glide only */
+ GLboolean FXisHackUsable; /* Can we render into window? */
+ GLboolean FXwindowHack; /* Are we rendering into a window? */
+ fxMesaContext FXctx;
+#endif
+
struct xmesa_buffer *Next; /* Linked list pointer: */
};
@@ -557,6 +567,13 @@ extern void xmesa_choose_triangle( GLcontext *ctx );
extern void xmesa_register_swrast_functions( GLcontext *ctx );
+
+/* XXX this is a hack to implement shared display lists with 3Dfx */
+extern XMesaBuffer XMesaCreateWindowBuffer2( XMesaVisual v,
+ XMesaWindow w,
+ XMesaContext c );
+
+
#define ENABLE_EXT_texure_compression_s3tc 0 /* SW texture compression */
#ifdef XFree86Server