kms: evdi cursor work around

This commit is contained in:
Victoria Brekenfeld 2025-09-05 14:46:30 +02:00 committed by Victoria Brekenfeld
parent b7fd4bc781
commit 3935de018e

View file

@ -834,7 +834,7 @@ impl<'a> KmsGuard<'a> {
let driver = drm.device().get_driver().ok();
// QUIRK: Using an overlay plane on a nvidia card breaks the display controller (wtf...)
if driver.is_some_and(|driver| {
if driver.as_ref().is_some_and(|driver| {
driver
.name()
.to_string_lossy()
@ -843,6 +843,17 @@ impl<'a> KmsGuard<'a> {
}) {
planes.overlay = vec![];
}
// QUIRK: Cursor planes on evdi sometimes don't disappear correctly.
// TODO: Debug and figure out, as they can be a nice improvement.
if driver.as_ref().is_some_and(|driver| {
driver
.name()
.to_string_lossy()
.to_lowercase()
.contains("evdi")
}) {
planes.cursor = vec![];
}
let mut renderer = self
.api