From: Ben Widawsky Date: Wed, 11 Apr 2012 18:18:19 +0000 (-0700) Subject: drm/i915: i915_gem_object_sync must handle NULL X-Git-Tag: v3.5-rc1~83^2~81^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5816d648d5f0d496d7bf11ab9174a365c791ccc6;p=pandora-kernel.git drm/i915: i915_gem_object_sync must handle NULL When I extracted the synchronization code for implementing semaphorified pageflips (74f5f6e0), I neglected the non pipelined case which also calls this code. The modesetting code wants to make sure the object has finished rendering to the frame before configuring the scanout (ie. non-pipelined case). As a result of a follow on discussion on IRC, I've decided to add a comment about the function itself which received much inspiration from Chris as well. So really, this patch was ghost-written by Chris :). Reported-by: Chris Wilson Signed-off-by: Ben Widawsky Reviewed-by: Chris Wilson Tested-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed