diff options
author | Ian Romanick <[email protected]> | 2005-06-14 22:51:44 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-06-14 22:51:44 +0000 |
commit | aa2691547281a09da86f7fcc3f991b92a29fc9c7 (patch) | |
tree | 68f09948c573a39a6c68674450c96dc30e469626 /src/mesa/drivers/dri/mga/mgacontext.h | |
parent | fb818a0b115afaf43a5a3a32e649c86165ccc366 (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.h | 3 |
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 72c1841fedd..1d8c5da6dae 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 |