gallium/winsys/kms: Move display target handle lookup to separate function
authorTomasz Figa <tfiga@chromium.org>
Tue, 2 Aug 2016 10:46:27 +0000 (19:46 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 24 Aug 2016 13:39:23 +0000 (14:39 +0100)
commit0465c72d46e49bb26c5f1f09bc70074d49e82196
tree338ac32e3747e285534978d9901541cab2f3afa7
parente71b78ebf9a405f2831826de2cb2d4ebb8658262
gallium/winsys/kms: Move display target handle lookup to separate function

As a preparation to use the lookup in more than once place, move the
code that looks up given KMS/GEM handle to a separate function. This
change should not introduce any functional changes.

v2: Split into separate patch.
    Move lookup code into separate function.

v3 [Emil Velikov]:
    Rename kms_sw_displaytarget_{lookup,find_and_ref} (Jordan)

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com> (v2)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c