-
Notifications
You must be signed in to change notification settings - Fork 197
modesetting: Use don't skip planes that are not on the current crtc #1503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This breaks on some nvidia cards. Fixes: X11Libre@ed49ae8 Signed-off-by: stefan11111 <[email protected]>
|
@notbabaisyou ping |
Signed-off-by: stefan11111 <[email protected]>
|
My knowledge is not deep in libdrm/drm, shouldn't we rebuild plane->crtc->encoder graph ? Or I totally wrong about this? |
Not sure what you mean by this?
Not necessarily, it may be that some of the primary planes have no configured crtc, while others have a crtc configured, but not the one we are on. This code makes it so that we try to use a plane that is already on the current crtc, but if there is none, we use the first primary plane we find as a fallback. |
|
Unrelated, but looking at this, doing |
I meant "...it may be that some of the primary planes have no configured crtc, ..." On unrelated note, Looking at this I suspecting that we should start try to play with vkms (https://bootlin.com/pub/conferences/2025/elce/chauvet-vkms.pdf https://docs.kernel.org/gpu/vkms.html) |
I got that, I'm not sure what you meant by 'rebuild plane->crtc->encoder graph'? The code walks the planes returned by the kernel and, for primary planes, picks one we deem "best". Now that I write this, I wonder how was I able to get a black screen on nvidia without this?
Some runtime CI would really be nice. |
This breaks on some nvidia cards.
Fixes: ed49ae8