[Intel-gfx] [PATCH] intel: don't skip set_domain on mapping of shared buffers.

Eric Anholt eric at anholt.net
Mon Dec 15 00:24:39 CET 2008


---
 libdrm/intel/intel_bufmgr_gem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libdrm/intel/intel_bufmgr_gem.c b/libdrm/intel/intel_bufmgr_gem.c
index 17aaaa3..2bd8925 100644
--- a/libdrm/intel/intel_bufmgr_gem.c
+++ b/libdrm/intel/intel_bufmgr_gem.c
@@ -544,7 +544,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->name != 0 || !bo_gem->swrast) {
 	set_domain.handle = bo_gem->gem_handle;
 	set_domain.read_domains = I915_GEM_DOMAIN_CPU;
 	if (write_enable)
-- 
1.5.6.5




More information about the Intel-gfx mailing list