45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 2009 Tiago Vignatti
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person
45e9809aff7304721fddb95654901b32195c9c7avboxsync * obtaining a copy of this software and associated documentation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * files (the "Software"), to deal in the Software without
45e9809aff7304721fddb95654901b32195c9c7avboxsync * restriction, including without limitation the rights to use,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy, modify, merge, publish, distribute, sublicense, and/or sell
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following
45e9809aff7304721fddb95654901b32195c9c7avboxsync * conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be
45e9809aff7304721fddb95654901b32195c9c7avboxsync * included in all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
45e9809aff7304721fddb95654901b32195c9c7avboxsync * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
45e9809aff7304721fddb95654901b32195c9c7avboxsync * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_XORG_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <xorg-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "misc.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86_OSproc.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/X.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "colormapst.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "scrnintstr.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "screenint.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "gcstruct.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "pixmapstr.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "pixmap.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "windowstr.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "window.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86str.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "mipointer.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "mipointrst.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef RENDER
45e9809aff7304721fddb95654901b32195c9c7avboxsync# include "picturestr.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define WRAP_SCREEN(x,y) {pScreenPriv->x = pScreen->x; pScreen->x = y;}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define UNWRAP_SCREEN(x) pScreen->x = pScreenPriv->x
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define SCREEN_PROLOG(x) pScreen->x = ((VGAarbiterScreenPtr) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync dixLookupPrivate(&(pScreen)->devPrivates, VGAarbiterScreenKey))->x
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define SCREEN_EPILOG(x,y) pScreen->x = y;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define WRAP_PICT(x,y) if (ps) {pScreenPriv->x = ps->x;\
45e9809aff7304721fddb95654901b32195c9c7avboxsync ps->x = y;}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define UNWRAP_PICT(x) if (ps) {ps->x = pScreenPriv->x;}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define PICTURE_PROLOGUE(field) ps->field = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((VGAarbiterScreenPtr)dixLookupPrivate(&(pScreen)->devPrivates, \
45e9809aff7304721fddb95654901b32195c9c7avboxsync VGAarbiterScreenKey))->field
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define PICTURE_EPILOGUE(field, wrap) ps->field = wrap
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define WRAP_SCREEN_INFO(x,y) do {pScreenPriv->x = pScrn->x; pScrn->x = y;} while(0)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define UNWRAP_SCREEN_INFO(x) pScrn->x = pScreenPriv->x
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define SPRITE_PROLOG miPointerScreenPtr PointPriv = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (miPointerScreenPtr)dixLookupPrivate(&pScreen->devPrivates, \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miPointerScreenKey); VGAarbiterScreenPtr pScreenPriv = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((VGAarbiterScreenPtr)dixLookupPrivate(&(pScreen)->devPrivates, \
45e9809aff7304721fddb95654901b32195c9c7avboxsync VGAarbiterScreenKey)); PointPriv->spriteFuncs = pScreenPriv->miSprite;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define SPRITE_EPILOG pScreenPriv->miSprite = PointPriv->spriteFuncs;\
45e9809aff7304721fddb95654901b32195c9c7avboxsync PointPriv->spriteFuncs = &VGAarbiterSpriteFuncs;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define WRAP_SPRITE do { pScreenPriv->miSprite = PointPriv->spriteFuncs;\
45e9809aff7304721fddb95654901b32195c9c7avboxsync PointPriv->spriteFuncs = &VGAarbiterSpriteFuncs; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync } while (0)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define UNWRAP_SPRITE PointPriv->spriteFuncs = pScreenPriv->miSprite
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GC_WRAP(x) pGCPriv->wrapOps = (x)->ops;\
45e9809aff7304721fddb95654901b32195c9c7avboxsync pGCPriv->wrapFuncs = (x)->funcs; (x)->ops = &VGAarbiterGCOps;\
45e9809aff7304721fddb95654901b32195c9c7avboxsync (x)->funcs = &VGAarbiterGCFuncs;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GC_UNWRAP(x) VGAarbiterGCPtr pGCPriv = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (VGAarbiterGCPtr)dixLookupPrivate(&(x)->devPrivates, VGAarbiterGCKey);\
45e9809aff7304721fddb95654901b32195c9c7avboxsync (x)->ops = pGCPriv->wrapOps; (x)->funcs = pGCPriv->wrapFuncs;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GC_SCREEN register ScrnInfoPtr pScrn = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync xf86Screens[pGC->pScreen->myNum]
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VGAGet(x)\
45e9809aff7304721fddb95654901b32195c9c7avboxsync pci_device_vgaarb_set_target(xf86Screens[pScreen->myNum]->vgaDev); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync pci_device_vgaarb_lock();
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VGAGet_GC(x)\
45e9809aff7304721fddb95654901b32195c9c7avboxsync pci_device_vgaarb_set_target(xf86Screens[pGC->pScreen->myNum]->vgaDev); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync pci_device_vgaarb_lock();
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VGAPut(x)\
45e9809aff7304721fddb95654901b32195c9c7avboxsync pci_device_vgaarb_unlock();
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VGAPut_GC(x)\
45e9809aff7304721fddb95654901b32195c9c7avboxsync pci_device_vgaarb_unlock();
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct _VGAarbiterScreen {
45e9809aff7304721fddb95654901b32195c9c7avboxsync CreateGCProcPtr CreateGC;
45e9809aff7304721fddb95654901b32195c9c7avboxsync CloseScreenProcPtr CloseScreen;
45e9809aff7304721fddb95654901b32195c9c7avboxsync ScreenBlockHandlerProcPtr BlockHandler;
45e9809aff7304721fddb95654901b32195c9c7avboxsync ScreenWakeupHandlerProcPtr WakeupHandler;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GetImageProcPtr GetImage;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GetSpansProcPtr GetSpans;
45e9809aff7304721fddb95654901b32195c9c7avboxsync SourceValidateProcPtr SourceValidate;
45e9809aff7304721fddb95654901b32195c9c7avboxsync CopyWindowProcPtr CopyWindow;
45e9809aff7304721fddb95654901b32195c9c7avboxsync ClearToBackgroundProcPtr ClearToBackground;
45e9809aff7304721fddb95654901b32195c9c7avboxsync CreatePixmapProcPtr CreatePixmap;
45e9809aff7304721fddb95654901b32195c9c7avboxsync SaveScreenProcPtr SaveScreen;
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Colormap */
45e9809aff7304721fddb95654901b32195c9c7avboxsync StoreColorsProcPtr StoreColors;
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Cursor */
45e9809aff7304721fddb95654901b32195c9c7avboxsync DisplayCursorProcPtr DisplayCursor;
45e9809aff7304721fddb95654901b32195c9c7avboxsync RealizeCursorProcPtr RealizeCursor;
45e9809aff7304721fddb95654901b32195c9c7avboxsync UnrealizeCursorProcPtr UnrealizeCursor;
45e9809aff7304721fddb95654901b32195c9c7avboxsync RecolorCursorProcPtr RecolorCursor;
45e9809aff7304721fddb95654901b32195c9c7avboxsync SetCursorPositionProcPtr SetCursorPosition;
45e9809aff7304721fddb95654901b32195c9c7avboxsync void (*AdjustFrame)(int,int,int,int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool (*SwitchMode)(int, DisplayModePtr,int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool (*EnterVT)(int, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync void (*LeaveVT)(int, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync void (*FreeScreen)(int, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync miPointerSpriteFuncPtr miSprite;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef RENDER
45e9809aff7304721fddb95654901b32195c9c7avboxsync CompositeProcPtr Composite;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GlyphsProcPtr Glyphs;
45e9809aff7304721fddb95654901b32195c9c7avboxsync CompositeRectsProcPtr CompositeRects;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync} VGAarbiterScreenRec, *VGAarbiterScreenPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct _VGAarbiterGC {
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCOps *wrapOps;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCFuncs *wrapFuncs;
45e9809aff7304721fddb95654901b32195c9c7avboxsync} VGAarbiterGCRec, *VGAarbiterGCPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Screen funcs */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterBlockHandler(int i, pointer blockData, pointer pTimeout, pointer pReadmask);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterWakeupHandler(int i, pointer blockData, unsigned long result, pointer pReadmask);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterCloseScreen (int i, ScreenPtr pScreen);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterGetImage (DrawablePtr pDrawable, int sx, int sy, int w,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int h, unsigned int format, unsigned long planemask, char *pdstLine);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterGetSpans (DrawablePtr pDrawable, int wMax, DDXPointPtr
45e9809aff7304721fddb95654901b32195c9c7avboxsync ppt, int *pwidth, int nspans, char *pdstStart);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterSourceValidate (DrawablePtr pDrawable, int x, int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int width, int height);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr prgnSrc);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterClearToBackground (WindowPtr pWin, int x, int y, int w,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int h, Bool generateExposures);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic PixmapPtr VGAarbiterCreatePixmap(ScreenPtr pScreen, int w, int h,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int depth, unsigned int usage_hint);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterCreateGC(GCPtr pGC);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterSaveScreen(ScreenPtr pScreen, Bool unblank);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterStoreColors (ColormapPtr pmap, int ndef, xColorItem
45e9809aff7304721fddb95654901b32195c9c7avboxsync *pdefs);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterRecolorCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync CursorPtr pCurs, Bool displayed);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterRealizeCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync CursorPtr pCursor);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterUnrealizeCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync CursorPtr pCursor);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterDisplayCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync CursorPtr pCursor);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterSetCursorPosition (DeviceIntPtr pDev, ScreenPtr
45e9809aff7304721fddb95654901b32195c9c7avboxsync pScreen, int x, int y, Bool generateEvent);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterAdjustFrame(int index, int x, int y, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterSwitchMode(int index, DisplayModePtr mode, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterEnterVT(int index, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterLeaveVT(int index, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterFreeScreen(int index, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* GC funcs */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterValidateGC(GCPtr pGC, unsigned long changes,
45e9809aff7304721fddb95654901b32195c9c7avboxsync DrawablePtr pDraw);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterChangeGC(GCPtr pGC, unsigned long mask);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterCopyGC(GCPtr pGCSrc, unsigned long mask, GCPtr pGCDst);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterDestroyGC(GCPtr pGC);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterChangeClip(GCPtr pGC, int type, pointer pvalue,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int nrects);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterDestroyClip(GCPtr pGC);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterCopyClip(GCPtr pgcDst, GCPtr pgcSrc);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* GC ops */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterFillSpans( DrawablePtr pDraw, GC *pGC, int nInit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync DDXPointPtr pptInit, int *pwidthInit, int fSorted);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterSetSpans(DrawablePtr pDraw, GCPtr pGC, char *pcharsrc,
45e9809aff7304721fddb95654901b32195c9c7avboxsync register DDXPointPtr ppt, int *pwidth, int nspans, int fSorted);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPutImage(DrawablePtr pDraw, GCPtr pGC, int depth,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x, int y, int w, int h, int leftPad, int format, char *pImage);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic RegionPtr VGAarbiterCopyArea(DrawablePtr pSrc, DrawablePtr pDst,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GC *pGC, int srcx, int srcy, int width, int height, int dstx, int dsty);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic RegionPtr VGAarbiterCopyPlane(DrawablePtr pSrc, DrawablePtr pDst,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCPtr pGC, int srcx, int srcy, int width, int height, int dstx, int dsty,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long bitPlane);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolyPoint(DrawablePtr pDraw, GCPtr pGC, int mode,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int npt, xPoint *pptInit);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolylines(DrawablePtr pDraw, GCPtr pGC, int mode,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int npt, DDXPointPtr pptInit);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolySegment(DrawablePtr pDraw, GCPtr pGC, int nseg,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xSegment *pSeg);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolyRectangle(DrawablePtr pDraw, GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int nRectsInit, xRectangle *pRectsInit);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolyArc(DrawablePtr pDraw, GCPtr pGC, int narcs,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xArc *parcs);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterFillPolygon(DrawablePtr pDraw, GCPtr pGC, int shape,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int mode, int count, DDXPointPtr ptsIn);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolyFillRect( DrawablePtr pDraw, GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int nrectFill, xRectangle *prectInit);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolyFillArc(DrawablePtr pDraw, GCPtr pGC, int narcs,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xArc *parcs);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic int VGAarbiterPolyText8(DrawablePtr pDraw, GCPtr pGC, int x, int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int count, char *chars);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic int VGAarbiterPolyText16(DrawablePtr pDraw, GCPtr pGC, int x, int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int count, unsigned short *chars);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterImageText8(DrawablePtr pDraw, GCPtr pGC, int x, int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int count, char *chars);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterImageText16(DrawablePtr pDraw, GCPtr pGC, int x, int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int count, unsigned short *chars);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterImageGlyphBlt(DrawablePtr pDraw, GCPtr pGC, int xInit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int yInit, unsigned int nglyph, CharInfoPtr *ppci, pointer pglyphBase);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPolyGlyphBlt(DrawablePtr pDraw, GCPtr pGC, int xInit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int yInit, unsigned int nglyph, CharInfoPtr *ppci, pointer pglyphBase);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterPushPixels(GCPtr pGC, PixmapPtr pBitMap, DrawablePtr
45e9809aff7304721fddb95654901b32195c9c7avboxsync pDraw, int dx, int dy, int xOrg, int yOrg);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* miSpriteFuncs */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterSpriteRealizeCursor(DeviceIntPtr pDev, ScreenPtr
45e9809aff7304721fddb95654901b32195c9c7avboxsync pScreen, CursorPtr pCur);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterSpriteUnrealizeCursor(DeviceIntPtr pDev, ScreenPtr
45e9809aff7304721fddb95654901b32195c9c7avboxsync pScreen, CursorPtr pCur);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterSpriteSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync CursorPtr pCur, int x, int y);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterSpriteMoveCursor(DeviceIntPtr pDev, ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x, int y);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic Bool VGAarbiterDeviceCursorInitialize(DeviceIntPtr pDev, ScreenPtr pScreen);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterDeviceCursorCleanup(DeviceIntPtr pDev, ScreenPtr pScreen);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef RENDER
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask,
45e9809aff7304721fddb95654901b32195c9c7avboxsync PicturePtr pDst, INT16 xSrc, INT16 ySrc, INT16 xMask, INT16 yMask,
45e9809aff7304721fddb95654901b32195c9c7avboxsync INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterGlyphs(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
45e9809aff7304721fddb95654901b32195c9c7avboxsync PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc, int nlist, GlyphListPtr
45e9809aff7304721fddb95654901b32195c9c7avboxsync list, GlyphPtr *glyphs);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstatic void VGAarbiterCompositeRects(CARD8 op, PicturePtr pDst, xRenderColor
45e9809aff7304721fddb95654901b32195c9c7avboxsync *color, int nRect, xRectangle *rects);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif