diff options
author | Eric Anholt <eric@anholt.net> | 2008-12-14 14:39:24 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-12-14 16:50:02 -0800 |
commit | c86d431fe6174b1c2de531929213ea7dbd92326d (patch) | |
tree | 3675666c6e2a14e0d153d420e1c12fbd2816b897 /libdrm | |
parent | cebbd2edb54db1780a57b3873d1d3e40cb20043f (diff) |
intel: don't skip set_domain on mapping of shared buffers.
Diffstat (limited to 'libdrm')
-rw-r--r-- | 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 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) |