This is taken from X commit:
https://gitlab.freedesktop.org/xorg/xserver/-/commit/5468123822bbe8cd0a0abe07bbbd3a9cb14ed2cb
Which is in master but not yet in any releases. This adds the platform
code to the build for DRM so that PRIME setups can work.