From c86d431fe6174b1c2de531929213ea7dbd92326d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 14 Dec 2008 14:39:24 -0800 Subject: [PATCH] intel: don't skip set_domain on mapping of shared buffers. --- libdrm/intel/intel_bufmgr_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdrm/intel/intel_bufmgr_gem.c b/libdrm/intel/intel_bufmgr_gem.c index 5da1f6b0..e5a1375e 100644 --- a/libdrm/intel/intel_bufmgr_gem.c +++ b/libdrm/intel/intel_bufmgr_gem.c @@ -545,7 +545,7 @@ drm_intel_gem_bo_map(drm_intel_bo *bo, int write_enable) bo_gem->virtual); bo->virtual = bo_gem->virtual; - if (!bo_gem->swrast) { + if (bo_gem->global_name != 0 || !bo_gem->swrast) { set_domain.handle = bo_gem->gem_handle; set_domain.read_domains = I915_GEM_DOMAIN_CPU; if (write_enable)