From 1b45936ae614244aa49b1a5d3c7fc39773c4f9b6 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Fri, 6 Feb 2009 18:29:55 -0500 Subject: R6xx/R7xx EXA: Fix typo in DFS noticed by pzad in IRC --- src/r600_exa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/r600_exa.c') 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; -- cgit v1.2.3