Skip to content
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

NativeStateDRM: fix running without current mode #34

Closed
wants to merge 1 commit into from

Conversation

lynxeye-dev
Copy link
Contributor

If there is no current mode set (likely if framebuffer emulation is
disabled), we need to work out the connector->encoder->crtc chain on
our own.

Signed-off-by: Lucas Stach l.stach@pengutronix.de

If there is no current mode set (likely if framebuffer emulation is
disabled), we need to work out the connector->encoder->crtc chain on
our own.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
@@ -267,10 +267,16 @@ NativeStateDRM::init()

// Find a suitable encoder
for (int e = 0; e < resources_->count_encoders; e++) {
int found = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a bool.

LeSpocky pushed a commit to LeSpocky/ptxdist that referenced this pull request Jul 3, 2017
Also fix the DRM backend to be able to run without a currently set
mode. Patch is on its way to upstream:
glmark2/glmark2#34

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
@afrantzis
Copy link
Contributor

afrantzis commented Jan 12, 2018

I have merged this patch at d3840c8, after applying the change Jesse suggested (int->bool). Thanks!

@afrantzis afrantzis closed this Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants