45e9809aff7304721fddb95654901b32195c9c7avboxsync/**************************************************************************
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCopyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncAll Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPermission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsynccopy of this software and associated documentation files (the
45e9809aff7304721fddb95654901b32195c9c7avboxsync"Software"), to deal in the Software without restriction, including
45e9809aff7304721fddb95654901b32195c9c7avboxsyncwithout limitation the rights to use, copy, modify, merge, publish,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdistribute, sub license, and/or sell copies of the Software, and to
45e9809aff7304721fddb95654901b32195c9c7avboxsyncpermit persons to whom the Software is furnished to do so, subject to
45e9809aff7304721fddb95654901b32195c9c7avboxsyncthe following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsyncThe above copyright notice and this permission notice (including the
45e9809aff7304721fddb95654901b32195c9c7avboxsyncnext paragraph) shall be included in all copies or substantial portions
45e9809aff7304721fddb95654901b32195c9c7avboxsyncof the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
45e9809aff7304721fddb95654901b32195c9c7avboxsyncOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
45e9809aff7304721fddb95654901b32195c9c7avboxsyncMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncIN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
45e9809aff7304721fddb95654901b32195c9c7avboxsyncANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync**************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Jens Owen <jens@tungstengraphics.com>
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((DRIDrawablePrivPtr)((pWin)->devPrivates[DRIWindowPrivIndex].ptr)))
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((DRIDrawablePrivPtr)((pPix)->devPrivates[DRIWindowPrivIndex].ptr)))
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((DRIScreenPrivPtr)((pScreen)->devPrivates[DRIScreenPrivIndex].ptr)))
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define DRI_SCREEN_PRIV_FROM_INDEX(screenIndex) ((DRIScreenPrivPtr) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (screenInfo.screens[screenIndex]->devPrivates[DRIScreenPrivIndex].ptr))
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((DRIEntPrivPtr)(xf86GetEntityPrivate((pScrn)->entityList[0], \
45e9809aff7304721fddb95654901b32195c9c7avboxsync drm_handle_t hSAREA; /* Handle to SAREA, for mapping */
45e9809aff7304721fddb95654901b32195c9c7avboxsync XF86DRISAREAPtr pSAREA; /* Mapped pointer to SAREA */
45e9809aff7304721fddb95654901b32195c9c7avboxsync drm_context_t myContext; /* DDX Driver's context */
45e9809aff7304721fddb95654901b32195c9c7avboxsync DRIContextPrivPtr myContextPriv;/* Pointer to server's private area */
45e9809aff7304721fddb95654901b32195c9c7avboxsync DRIContextPrivPtr lastPartial3DContext; /* last one partially saved */
45e9809aff7304721fddb95654901b32195c9c7avboxsync void** partial3DContextStore; /* parital 3D context */
45e9809aff7304721fddb95654901b32195c9c7avboxsync drm_clip_rect_t private_buffer_rect; /* management of private buffers */
45e9809aff7304721fddb95654901b32195c9c7avboxsync DrawablePtr fullscreen; /* pointer to fullscreen drawable */
45e9809aff7304721fddb95654901b32195c9c7avboxsync drm_clip_rect_t fullscreen_rect; /* fake rect for fullscreen mode */
45e9809aff7304721fddb95654901b32195c9c7avboxsync DRIContextPrivPtr dummyCtxPriv; /* Pointer to dummy context */
45e9809aff7304721fddb95654901b32195c9c7avboxsync drm_handle_t hLSAREA; /* Handle to SAREA containing lock, for mapping */
45e9809aff7304721fddb95654901b32195c9c7avboxsync XF86DRILSAREAPtr pLSAREA; /* Mapped pointer to SAREA containing lock */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* DRI_STRUCT_H */