[Intel-gfx] [PATCH] intel: Delay testing for userptr until first use
Chris Wilson
chris at chris-wilson.co.uk
Tue Nov 4 15:36:16 CET 2014
On Tue, Nov 04, 2014 at 02:31:29PM +0000, Chris Wilson wrote:
> +static drm_intel_bo *
> +check_bo_alloc_userptr(drm_intel_bufmgr *bufmgr,
> + const char *name,
> + void *addr,
> + uint32_t tiling_mode,
> + uint32_t stride,
> + unsigned long size,
> + unsigned long flags)
> +{
> + if (has_userptr((drm_intel_bufmgr_gem *)bufmgr))
> + bufmgr->bo_alloc_userptr = drm_intel_bo_alloc_userptr;
bufmgr->bo_alloc_userptr = drm_intel_gem_bo_alloc_userptr; ofc
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list