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

Keith Packard keithp at keithp.com
Mon Dec 15 01:41:12 CET 2008


On Sun, 2008-12-14 at 15:24 -0800, Eric Anholt wrote:
> ---
>  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)

Again, global_name here.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20081214/6a536863/attachment.sig>


More information about the Intel-gfx mailing list