fix xbacklight on amdgpu
authorjsg <jsg@openbsd.org>
Mon, 25 Mar 2024 11:37:18 +0000 (11:37 +0000)
committerjsg <jsg@openbsd.org>
Mon, 25 Mar 2024 11:37:18 +0000 (11:37 +0000)
commitf81690b79ea2459f18c203b74a76cb848aebbe00
tree625644bf2d15a784e729d41d69c21bb4e9f744c7
parent15799da50f13d48675bb30819762e6d3d59b4cce
fix xbacklight on amdgpu

Call amdgpu_init_backlight() after drm_dev_register() otherwise
the connector isn't registered yet and dm->backlight_dev is not set.

tb@ mentioned this broke with the 6.6 drm update and confirmed this fixes it.
Debugged with help from dtucker@ on another machine.
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c