summaryrefslogtreecommitdiff
path: root/hw/kdrive/ati/ati.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-01-25 01:30:33 +0000
committerEric Anholt <anholt@freebsd.org>2004-01-25 01:30:33 +0000
commit01e9cc858ac646b3140d1d85ea9c069bc708fb28 (patch)
tree78414c63d5ca3c007066754ac773f2ca69b79cce /hw/kdrive/ati/ati.h
parentf2bedd17af7c3b9241c02dc1c899f32fc0cd2f10 (diff)
- Add glx visuals code based on XFree86's Radeon driver.
- Reserve areas for back/depth/span when USING_DRI && GLXEXT. This would be better in a TransitionTo3d, but we'd need to work with the offscreen memory manager for that. - Misc. fixes to ati_dri.c for DRI+GLX. Needs more work still.
Diffstat (limited to 'hw/kdrive/ati/ati.h')
-rw-r--r--hw/kdrive/ati/ati.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/kdrive/ati/ati.h b/hw/kdrive/ati/ati.h
index ea95abdb4..9270f080b 100644
--- a/hw/kdrive/ati/ati.h
+++ b/hw/kdrive/ati/ati.h
@@ -39,6 +39,11 @@
#define USE_DRI
#include "libdrm.h"
#include "dri.h"
+#ifdef GLXEXT
+#include "GL/glxint.h"
+#include "GL/glxtokens.h"
+#include "ati_dripriv.h"
+#endif
#endif
#define RADEON_REG_BASE(c) ((c)->attr.address[1])
@@ -224,6 +229,11 @@ typedef struct _ATIScreenInfo {
int serverContext;
DRIInfoPtr pDRIInfo;
+#ifdef GLXEXT
+ int numVisualConfigs;
+ __GLXvisualConfig *pVisualConfigs;
+ ATIConfigPrivPtr pVisualConfigsPriv;
+#endif /* GLXEXT */
#endif /* USE_DRI */
} ATIScreenInfo;
@@ -262,6 +272,9 @@ void
ATIDRICloseScreen(ScreenPtr pScreen);
#endif /* USE_DRI */
+int
+ATILog2(int val);
+
extern KdCardFuncs ATIFuncs;
#endif /* _ATI_H_ */