From a5b87a1128d672a44c116663752ea83c141c7296 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 15 Mar 2010 12:49:40 +0200 Subject: [PATCH] r600: Change scratch bo from uncached to cached. This should improve memcpy performance in AGP systems. --- src/r600_exa.c | 2 ++ src/radeon.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/r600_exa.c b/src/r600_exa.c index 488291d..62d39a8 100644 --- a/src/r600_exa.c +++ b/src/r600_exa.c @@ -2218,6 +2218,8 @@ R600DownloadFromScreenCS(PixmapPtr pSrc, int x, int y, int w, if (info->cs) radeon_cs_flush_indirect(pScrn); + radeon_gem_set_domain(scratch, RADEON_GEM_DOMAIN_CPU, RADEON_GEM_DOMAIN_CPU); + r = radeon_bo_map(scratch, 0); if (r) { r = FALSE; diff --git a/src/radeon.h b/src/radeon.h index 221d6e7..f901cc7 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -88,6 +88,7 @@ #ifdef XF86DRM_MODE #include "radeon_bo.h" +#include "radeon_bo_gem.h" #include "radeon_cs.h" #include "radeon_dri2.h" #include "drmmode_display.h" -- 1.6.3.3