[Intel-gfx] [PATCH 11/16] drm/i915: Introduce accurate frontbuffer tracking

Chris Wilson chris at chris-wilson.co.uk
Wed Jun 18 14:20:55 CEST 2014


On Wed, Jun 18, 2014 at 01:59:12PM +0200, Daniel Vetter wrote:
>  	mutex_lock(&dev->struct_mutex);
> -	ret = intel_pin_and_fence_fb_obj(dev,
> -					 to_intel_framebuffer(fb)->obj,
> -					 NULL);
> +	ret = intel_pin_and_fence_fb_obj(dev, obj, NULL);
> +	i915_gem_update_fb_bits(to_intel_framebuffer(old_fb)->obj, obj,
> +				INTEL_FRONTBUFFER_PRIMARY(pipe));

Hey, no changing state on a failed operation.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list