egl: split out a dri2_display_destroy() helper
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 11 May 2017 16:13:33 +0000 (17:13 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 15:49:52 +0000 (16:49 +0100)
commit3e73c0245b2e24b9d593179d26b4bed80e1ac078
treea4c2bdfadd30a04ec53915535c366ac33d704974
parent12196d1b76898bc51ad55e2ad69689df35b29494
egl: split out a dri2_display_destroy() helper

Within dri2_display_release() we already tear down all the display
specifics. Within the platform specific dri initialize however we badly
and partially duplicate that.

Let's stop that by fleshing out the required functionality into a helper
and using it throughout the codebase.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Rob Herring <robh@kernel.org>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h