summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/mga/mgacontext.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-06-14 22:51:44 +0000
committerIan Romanick <idr@us.ibm.com>2005-06-14 22:51:44 +0000
commitaa2691547281a09da86f7fcc3f991b92a29fc9c7 (patch)
tree68f09948c573a39a6c68674450c96dc30e469626 /src/mesa/drivers/dri/mga/mgacontext.h
parentfb818a0b115afaf43a5a3a32e649c86165ccc366 (diff)
Adds support for MGA DRM version 3.2.
This patch makes use of two of the new ioctls added in MGA DRM version 3.2. Specifically, the DRM_MGA_SET_FENCE and DRM_MGA_WAIT_FENCE ioctls are used in mgaWaitForFrameCompletion. As a result the MMIO register region and the primary DMA region are *not* mapped (if DRM 3.2 is available). This patch does *not* make use of the new get_param query was added to differentiate between G4x0 cards and G550 cards. That is left to a future update. Xorg bug: 3259 Reviewed by: Eric Anholt
Diffstat (limited to 'src/mesa/drivers/dri/mga/mgacontext.h')
-rw-r--r--src/mesa/drivers/dri/mga/mgacontext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/mga/mgacontext.h b/src/mesa/drivers/dri/mga/mgacontext.h
index 72c1841fed..1d8c5da6da 100644
--- a/src/mesa/drivers/dri/mga/mgacontext.h
+++ b/src/mesa/drivers/dri/mga/mgacontext.h
@@ -29,6 +29,7 @@
#ifndef MGALIB_INC
#define MGALIB_INC
+#include <stdint.h>
#include "drm.h"
#include "mga_drm.h"
#include "dri_util.h"
@@ -268,6 +269,8 @@ struct mga_context_t {
GLuint swap_count;
GLuint swap_missed_count;
+ uint32_t last_frame_fence;
+
PFNGLXGETUSTPROC get_ust;
/* Drawable, cliprect and scissor information