From 7623e169e1f7d5afbd4108de03f28098bca519db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 27 Aug 2009 09:52:11 +0200 Subject: EXA: Allocate pixmap BOs in VRAM. This is the intention with EXA in xserver Git, and IME it improves performance significantly even with older versions. --- src/radeon_exa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/radeon_exa.c b/src/radeon_exa.c index 3f3c9ba5..b7013c95 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -390,8 +390,8 @@ void *RADEONEXACreatePixmap(ScreenPtr pScreen, int size, int align) if (size == 0) return new_priv; - new_priv->bo = radeon_bo_open(info->bufmgr, 0, size, - align, 0, 0); + new_priv->bo = radeon_bo_open(info->bufmgr, 0, size, align, + RADEON_GEM_DOMAIN_VRAM, 0); if (!new_priv->bo) { xfree(new_priv); ErrorF("Failed to alloc memory\n"); @@ -442,8 +442,8 @@ void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height, *new_pitch = padded_width; - new_priv->bo = radeon_bo_open(info->bufmgr, 0, size, - 0, 0, 0); + new_priv->bo = radeon_bo_open(info->bufmgr, 0, size, 0, + RADEON_GEM_DOMAIN_VRAM, 0); if (!new_priv->bo) { xfree(new_priv); ErrorF("Failed to alloc memory\n"); -- cgit v1.2.3