[Intel-gfx] [PATCH 08/15] drm/i915: Pass vma to relocate entry

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Mar 21 14:17:08 UTC 2017


On to, 2017-03-16 at 13:19 +0000, Chris Wilson wrote:
> We can simplify our tracking of pending writes in an execbuf to the
> single bit in the vma->exec_entry->flags, but that requires the
> relocation function knowing the object's vma. Pass it along.
> 

Drop a comment here that the flushing granularity is "any bit set"
level, so extra tracking granularity isn't helping.

> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

<SNIP>

After this, pending_read_domains / pending_write_domain are unused in
DRM scope, so could be removed.

> @@ -1669,7 +1652,7 @@ i915_gem_do_execbuffer(struct drm_device *dev,
>  	}
>  
>  	/* Set the pending read domains for the batch buffer to COMMAND */

Nuke this comment too.

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list