diff options
author | Dave Airlie <airlied@redhat.com> | 2012-08-17 11:31:33 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-17 11:31:33 +1000 |
commit | 9142cca145c5550a0a704e732ff5410ca019c8c1 (patch) | |
tree | 25cc51d7cc543ea1f0964e62fc0e4e9cc0bb5f67 | |
parent | f95930dc32e8bb4360e4fe18ff3fe5dca69bb4eb (diff) |
fix pre-600 copyprime-wip
-rw-r--r-- | src/radeon_exa_funcs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_exa_funcs.c b/src/radeon_exa_funcs.c index cc997c79..2533d786 100644 --- a/src/radeon_exa_funcs.c +++ b/src/radeon_exa_funcs.c @@ -260,8 +260,9 @@ RADEONPrepareCopy(PixmapPtr pSrc, PixmapPtr pDst, info->state_2d.src_bo = driver_priv->bo; driver_priv = exaGetPixmapDriverPrivate(pDst); - radeon_cs_space_add_persistent_bo(info->cs, driver_priv->bo, 0, RADEON_GEM_DOMAIN_VRAM); info->state_2d.dst_bo = driver_priv->bo; + info->state_2d.dst_domain = driver_priv->shared ? RADEON_GEM_DOMAIN_GTT : RADEON_GEM_DOMAIN_VRAM; + radeon_cs_space_add_persistent_bo(info->cs, driver_priv->bo, 0, info->state_2d.dst_domain); ret = radeon_cs_space_check(info->cs); if (ret) |