summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2014-01-06 12:37:36 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2014-01-08 18:46:53 +0100
commit97ce302ddd6e86397ea56ea9089b9549af73c3ac (patch)
tree7b8eee151f61214106ec45c4cf182c7aea50c3ec
parentfd636e39a3f32a6dcd107c370513d8cb9aae26c2 (diff)
downloadxf86-video-vmware-97ce302ddd6e86397ea56ea9089b9549af73c3ac.tar.gz
xf86-video-vmware-97ce302ddd6e86397ea56ea9089b9549af73c3ac.tar.bz2
xf86-video-vmware-97ce302ddd6e86397ea56ea9089b9549af73c3ac.zip
vmwgfx: Enable direct dmas
Enable direct dmas instead of using the xa-provided dma functionality. This saves a bounce-buffer software copy of all dma'd contents. This also implies that all drawables with mixed software / hardware contents will use a kernel buffer for software rendering. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--vmwgfx/vmwgfx_saa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmwgfx/vmwgfx_saa.c b/vmwgfx/vmwgfx_saa.c
index c8b4df1..c323c5f 100644
--- a/vmwgfx/vmwgfx_saa.c
+++ b/vmwgfx/vmwgfx_saa.c
@@ -1423,7 +1423,7 @@ vmwgfx_saa_init(ScreenPtr pScreen, int drm_fd, struct xa_tracker *xat,
vsaa->xa_ctx = xa_context_default(xat);
vsaa->drm_fd = drm_fd;
vsaa->present_flush = present_flush;
- vsaa->can_optimize_dma = FALSE;
+ vsaa->can_optimize_dma = TRUE;
vsaa->use_present_opt = direct_presents;
vsaa->only_hw_presents = only_hw_presents;
vsaa->rendercheck = rendercheck;