diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-08-27 09:52:11 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-08-27 09:52:11 +0200 |
commit | 7623e169e1f7d5afbd4108de03f28098bca519db (patch) | |
tree | 05e9b51a1dc296e6297d0cd3bd33b65d3a682795 /src/radeon_exa.c | |
parent | b90b823790657707b5bf7249095833bef959b0e8 (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.
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r-- | src/radeon_exa.c | 8 |
1 files 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"); |