zink: add back kms handling
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 1 Jun 2022 15:31:28 +0000 (11:31 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 4 Jun 2022 01:27:53 +0000 (01:27 +0000)
commitb0fe621459c1b02b658f05ebbaba3ca68a7830de
tree3943c2bbed6f1923ba199cf58ca38aabfa30532b
parentb4ef984ef3f5ff2ab1e762231f490e7407b01e00
zink: add back kms handling

removing this broke the ability to create system compositors

rework it a bit though so that kms handles are stored and destroyed
when the bo is freed

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16815>
src/gallium/drivers/zink/meson.build
src/gallium/drivers/zink/zink_bo.c
src/gallium/drivers/zink/zink_bo.h
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_screen.h