-
Notifications
You must be signed in to change notification settings - Fork 61
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
REGRESSION(47dee03): Broke DRM plugin on RPi4 #614
Comments
The following patch fixes the issue
But I'm not sure if is the best approach because I'm not very familiar with this DRM code. Some notes:
As you see, in this case (RPi4) I have 3 encoders and only one of those has a non-zero value for the |
Following that, I can see this alternative patch also fixes the issue on the RPi4
Basically we have to call the function Not sure if is better this second patch or the previous one. Comments? |
Interesting, this other patch fixes the issue as well:
Basically turn the previous commented assertion into an if and do not check in the previous loop the value of the Looks like a winner to me this last one. I would like to know if this also works on the imx6 use case |
I wonder if this is the same bug/issue I am seeing here: #611 |
find_crtc_for_encoder() should not only check the bitmask but also the ID of the CRTC.
find_crtc_for_encoder() should not only check the bitmask but also the ID of the CRTC.
Just merged a fix for this in #680 |
find_crtc_for_encoder() should not only check the bitmask but also the ID of the CRTC. (cherry picked from commit 843f874)
find_crtc_for_encoder() should not only check the bitmask but also the ID of the CRTC.
Commit 47dee03 broke the DRM plugin on the RPi4 (My test build is based on Yocto version 4.2 (Mickeledore) with Mesa drivers)
I bisected it and reverting this commit fixes the issue.
To test this on the RPi4 you have to pass to Cog the
renderer=gles
platform parameters (see below how to execute cog)On the terminal you can see this:
And nothing gets rendered on the screen
The error
(cog:6469): Cog-DRM-WARNING **: 20:50:59.149: cog_drm_gles_renderer_handle_egl_image: Cannot set mode (Invalid argument)
is new.If you run with env var
G_MESSAGES_DEBUG=all
then you get this: http://ix.io/4JfTRelated: #590
//cc @zhani @psaavedra @aperezdc
The text was updated successfully, but these errors were encountered: