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