]> git.openfabrics.org - ~emulex/infiniband.git/commit
drm/i915: i915_gem_object_sync must handle NULL
authorBen Widawsky <ben@bwidawsk.net>
Wed, 11 Apr 2012 18:18:19 +0000 (11:18 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Apr 2012 19:14:13 +0000 (21:14 +0200)
commit5816d648d5f0d496d7bf11ab9174a365c791ccc6
treed5bce141a521b134bc0b8fa47553c63baddfafff
parentf82cfb6bcda164ef3a66b8c3fc549b1f9bdd09ad
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 <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c