[PATCH 13/16] drm: Refactor drop/set master code a bit
Chris Wilson
chris at chris-wilson.co.uk
Fri Jun 17 07:55:20 UTC 2016
On Fri, Jun 17, 2016 at 09:33:31AM +0200, Daniel Vetter wrote:
> File open/set_maseter ioctl and file close/drop_master ioctl share the
> same master handling code. Extract it.
>
> Note that vmwgfx's master_set callback needs to know whether the
> master is a new one or has been used already, so thread this through.
> On the close/drop side a similar parameter existed, but wasnt used.
> Drop it to simplify the flow.
>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Thomas Hellstrom <thellstrom at vmware.com>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the dri-devel
mailing list