diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-02-24 08:13:06 +0100 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-02-24 08:13:06 +0100 |
commit | 752b0218af36a45b333a12f66dfdce8c1e662aa8 (patch) | |
tree | 83daa03020a237530a709f9aab082136ab96c711 | |
parent | e2e508bc08d993fc108297e9cd2fa0ce183282bc (diff) |
EXA: Pass pScrn and info into RadeonCompositeTile.
Saves some cycles looking them up.
-rw-r--r-- | src/radeon_exa_render.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c index 6895ea56..2cc55db6 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -2015,13 +2015,14 @@ static inline void transformPoint(PictTransform *transform, xPointFixed *point) } #endif -static void FUNC_NAME(RadeonCompositeTile)(PixmapPtr pDst, +static void FUNC_NAME(RadeonCompositeTile)(ScrnInfoPtr pScrn, + RADEONInfoPtr info, + PixmapPtr pDst, int srcX, int srcY, int maskX, int maskY, int dstX, int dstY, int w, int h) { - RINFO_FROM_SCREEN(pDst->drawable.pScreen); int vtx_count; xPointFixed srcTopLeft, srcTopRight, srcBottomLeft, srcBottomRight; static xPointFixed maskTopLeft, maskTopRight, maskBottomLeft, maskBottomRight; @@ -2181,7 +2182,9 @@ static void FUNC_NAME(RadeonComposite)(PixmapPtr pDst, RINFO_FROM_SCREEN(pDst->drawable.pScreen); if (!info->accel_state->need_src_tile_x && !info->accel_state->need_src_tile_y) { - FUNC_NAME(RadeonCompositeTile)(pDst, + FUNC_NAME(RadeonCompositeTile)(pScrn, + info, + pDst, srcX, srcY, maskX, maskY, dstX, dstY, @@ -2215,7 +2218,9 @@ static void FUNC_NAME(RadeonComposite)(PixmapPtr pDst, w = remainingWidth; remainingWidth -= w; - FUNC_NAME(RadeonCompositeTile)(pDst, + FUNC_NAME(RadeonCompositeTile)(pScrn, + info, + pDst, tileSrcX, tileSrcY, tileMaskX, tileMaskY, tileDstX, tileDstY, |