45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Rootless Acceleration Code
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 2003 Torrey T. Lyons. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name(s) of the above copyright
45e9809aff7304721fddb95654901b32195c9c7avboxsync * holders shall not be used in advertising or otherwise to promote the sale,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * use or other dealings in this Software without prior written authorization.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_DIX_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <dix-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "fb.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlBlt.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlBlt (FbBits *srcLine,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbStride srcStride,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int srcX,
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync ScreenPtr pDstScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits *dstLine,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbStride dstStride,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int dstX,
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync int width,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int height,
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync int alu,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits pm,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int bpp,
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool reverse,
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool upsidedown);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlCopy.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncRegionPtr
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlCopyArea (DrawablePtr pSrcDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync DrawablePtr pDstDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int xIn,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int yIn,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int widthSrc,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int heightSrc,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int xOut,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int yOut);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlFill.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlFill (DrawablePtr pDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int width,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int height);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlSolidBoxClipped (DrawablePtr pDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr pClip,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x1,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int y1,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x2,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int y2,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits and,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits xor);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlFillRect.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlPolyFillRect(DrawablePtr pDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int nrect,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xRectangle *prect);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlFillSpans.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlFillSpans (DrawablePtr pDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int n,
45e9809aff7304721fddb95654901b32195c9c7avboxsync DDXPointPtr ppt,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int *pwidth,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int fSorted);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlGlyph.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlImageGlyphBlt (DrawablePtr pDrawable,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GCPtr pGC,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int nglyph,
45e9809aff7304721fddb95654901b32195c9c7avboxsync CharInfoPtr *ppciInit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync pointer pglyphBase);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rlSolid.c
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncrlSolid (ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits *dst,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbStride dstStride,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int dstX,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int bpp,
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync int width,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int height,
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits and,
45e9809aff7304721fddb95654901b32195c9c7avboxsync FbBits xor);