[Intel-gfx] [PATCH] drm/i915: correctly restore fences with objects attached

Jesse Barnes jbarnes at virtuousgeek.org
Wed Jul 17 17:34:48 CEST 2013


On Wed, 17 Jul 2013 14:51:28 +0200
Daniel Vetter <daniel.vetter at ffwll.ch> wrote:

> +		if (reg->obj) {
> +			i915_gem_object_update_fence(reg->obj, reg,
> +						     reg->obj->tiling_mode);
> +		} else {
> +			i915_gem_write_fence(dev, i, NULL);
> +		}

Why do we look at reg->obj here?  Can it be NULL?  Or would
reg->obj->tiling_mode != I915_TILING_NONE do the same thing?

-- 
Jesse Barnes, Intel Open Source Technology Center



More information about the Intel-gfx mailing list