summaryrefslogtreecommitdiff
path: root/src/r600_exa.c
diff options
context:
space:
mode:
authorSamuel Li <samuel.li@amd.com>2013-03-20 11:59:58 -0400
committerMichel Dänzer <michel.daenzer@amd.com>2013-06-03 17:27:17 +0200
commit365e571d9de0b5979425c34210789afca4ea5f68 (patch)
treeb34431646130bce9de8131b45631a286179b26be /src/r600_exa.c
parentbd2557ea5ef84b975060e929d5ece53ec464336f (diff)
radeon: use direct mapping for fast fb access.
Signed-off-by: Samuel Li <samuel.li@amd.com>
Diffstat (limited to 'src/r600_exa.c')
-rw-r--r--src/r600_exa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/r600_exa.c b/src/r600_exa.c
index 6c0a46d5..fbb1383d 100644
--- a/src/r600_exa.c
+++ b/src/r600_exa.c
@@ -1542,6 +1542,9 @@ R600UploadToScreenCS(PixmapPtr pDst, int x, int y, int w, int h,
if (!radeon_bo_is_busy(driver_priv->bo, &dst_domain))
goto copy;
}
+ /* use cpu copy for fast fb access */
+ if (info->is_fast_fb)
+ goto copy;
}
scratch_pitch = RADEON_ALIGN(w, drmmode_get_pitch_align(pScrn, (bpp / 8), 0));