summaryrefslogtreecommitdiff
path: root/src/i830_exa_render.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-07-20 11:15:18 -0400
committerEric Anholt <anholt@FreeBSD.org>2006-07-20 18:01:02 -0400
commit2b2173c618c080b1678990d65fe49b52bd8001b4 (patch)
tree92e6bdb1c2d282aa43e9929fc673d43237073097 /src/i830_exa_render.c
parent9f1cec83e0aef36c7d3482e62e8f01595f1fd076 (diff)
The pixmap's drawable x/y coordinates are always 0, so don't bother using them.
Diffstat (limited to 'src/i830_exa_render.c')
-rw-r--r--src/i830_exa_render.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/i830_exa_render.c b/src/i830_exa_render.c
index 7a22e7d5..23a3c43b 100644
--- a/src/i830_exa_render.c
+++ b/src/i830_exa_render.c
@@ -24,7 +24,6 @@ do { \
#endif
extern float scale_units[2][2];
-extern int draw_coords[3][2];
extern Bool is_transform[2];
extern PictTransform *transform[2];
@@ -249,8 +248,6 @@ I830TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit)
h = pPict->pDrawable->height;
scale_units[unit][0] = pPix->drawable.width;
scale_units[unit][1] = pPix->drawable.height;
- draw_coords[unit][0] = pPix->drawable.x;
- draw_coords[unit][1] = pPix->drawable.y;
for (i = 0; i < sizeof(I830TexFormats) / sizeof(I830TexFormats[0]); i++) {
if (I830TexFormats[i].fmt == pPict->format)
@@ -378,9 +375,7 @@ I830EXAPrepareComposite(int op, PicturePtr pSrcPicture,
I830GetDestFormat(pDstPicture, &dst_format);
dst_offset = exaGetPixmapOffset(pDst);
dst_pitch = exaGetPixmapPitch(pDst);
- draw_coords[2][0] = pDst->drawable.x;
- draw_coords[2][1] = pDst->drawable.y;
-
+
if (!I830TextureSetup(pSrcPicture, pSrc, 0))
I830FALLBACK("fail to setup src texture\n");
if (pMask != NULL) {