drm/nouveau/disp: Support more modes by checking with lower bpc
authorKarol Herbst <kherbst@redhat.com>
Thu, 30 Mar 2023 22:39:38 +0000 (00:39 +0200)
committerKarol Herbst <kherbst@redhat.com>
Sat, 1 Apr 2023 00:21:08 +0000 (02:21 +0200)
commit7f67aa097e875c87fba024e850cf405342300059
treef2265a28dec6fe2f69d0a5231352b79842553f94
parent25bbe844ef5c4fb4d7d8dcaa0080f922b7cd3a16
drm/nouveau/disp: Support more modes by checking with lower bpc

This allows us to advertise more modes especially on HDR displays.

Fixes using 4K@60 modes on my TV and main display both using a HDMI to DP
adapter. Also fixes similar issues for users running into this.

Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230330223938.4025569-1-kherbst@redhat.com
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/nouveau_dp.c