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

Avoid falling back to the headless display server #59074

Closed

Conversation

RandomShaper
Copy link
Member

For conext, see #58927 (which may is at least partially addressed by this PR).

@@ -1571,13 +1571,23 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
}
display_server = DisplayServer::create(i, rendering_driver, window_mode, window_vsync_mode, window_flags, window_size, err);
if (err == OK && display_server != nullptr) {
if (display_server->get_name() == "headless") {
Copy link
Member

Choose a reason for hiding this comment

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

Hm it seems like a workaround to handle this after the fact. I'd expect the create function to return an error if the requested driver is not suitable, instead of falling back to headless automatically.

Copy link
Member Author

Choose a reason for hiding this comment

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

So you'd be in favor of removing this loop that tries to fall back to another display server?
('Driver' and 'display server' terms are a bit mixed in this code. There are plans to uncouple both, so I guess this logic is going to be overhauled in any case.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Or you mean that there should be a way to filter out the headless before creating it?

@RandomShaper
Copy link
Member Author

Superseded by #62556.

@RandomShaper RandomShaper deleted the no_fall_back_to_headless branch June 30, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants