egl/loader: move crtc resource infrastructure as common helper
authorTapani Pälli <tapani.palli@intel.com>
Sun, 7 May 2023 18:28:54 +0000 (21:28 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 11 May 2023 10:51:11 +0000 (10:51 +0000)
commit5a7520d2529204c5b9eaeaf17675a7fe1d7c1852
treeb1268a8e2947f7e181885c7518b7a06802f91ae7
parent2a1e6a140da135e428915245cb4bb010c702b6f5
egl/loader: move crtc resource infrastructure as common helper

Patch moves (and renames) the infrastructure to fix compilation
failures when dri3 is not enabled in the build.

Fixes: 3170b63314f ("loader: Add infrastructure for tracking active CRTC resources");
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8476
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22897>
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_x11.c
src/loader/loader_dri3_helper.c
src/loader/loader_dri3_helper.h
src/loader/loader_dri_helper.c
src/loader/loader_dri_helper.h
src/loader/meson.build