summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-02-06 18:29:55 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-02-06 18:29:55 -0500
commit1b45936ae614244aa49b1a5d3c7fc39773c4f9b6 (patch)
tree93eaed7d0f791026b91a5d1b4a99cb4783d0d142
parentc06d89e16d5b2553142e8641e66080e1770c1563 (diff)
R6xx/R7xx EXA: Fix typo in DFS
noticed by pzad in IRC
-rw-r--r--src/r600_exa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/r600_exa.c b/src/r600_exa.c
index 7d5d7dc2..a4e2a4dc 100644
--- a/src/r600_exa.c
+++ b/src/r600_exa.c
@@ -2144,7 +2144,7 @@ R600DownloadFromScreen(PixmapPtr pSrc, int x, int y, int w, int h,
return FALSE;
scratch_mc_addr = info->gartLocation + info->dri->bufStart + (scratch->idx * scratch->total);
- hpass = min(h, scratch->total/2 / scratch_pitch);
+ hpass = min(h, scratch->total/2 / scratch_pitch_bytes);
//blit from vram to scratch
R600DoPrepareCopy(pScrn,
@@ -2159,7 +2159,7 @@ R600DownloadFromScreen(PixmapPtr pSrc, int x, int y, int w, int h,
int oldhpass = hpass;
h -= oldhpass;
y += oldhpass;
- hpass = min(h, scratch->total/2 / scratch_pitch);
+ hpass = min(h, scratch->total/2 / scratch_pitch_bytes);
if (hpass) {
scratch_offset = scratch->total/2 - scratch_offset;