summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-08-27 09:52:11 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-08-27 09:52:11 +0200
commit7623e169e1f7d5afbd4108de03f28098bca519db (patch)
tree05e9b51a1dc296e6297d0cd3bd33b65d3a682795
parentb90b823790657707b5bf7249095833bef959b0e8 (diff)
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.
-rw-r--r--src/radeon_exa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 3f3c9ba..b7013c9 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");