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

DispManX does not work if OpenGL driver is installed #7

Closed
midwan opened this issue Sep 11, 2016 · 2 comments
Closed

DispManX does not work if OpenGL driver is installed #7

midwan opened this issue Sep 11, 2016 · 2 comments
Assignees
Labels

Comments

@midwan
Copy link
Collaborator

midwan commented Sep 11, 2016

Edit: this is an issue with DispManX in general, not specific to the emulator.

There are a few problems if the (experimental) OpenGL driver is installed in the system:

  • The emulator GUI does not start up at all if started from the console. The application hangs. It opens up if started with xinit.
  • The emulation screen does not show at all when started. However, the emulation session is still running, you can return to the GUI with F12 and quit the emulation normally.

Note: The above apply when using the (currently default) approach of DispManX + SDL (v1). Tests showed that the SDL (v1) compile works without those problems, though it's many times slower.

Suggestion: move the emulator to SDL2. It should provide us with a nice speed boost also, since we can use GPU accelerated functions for the display.

@midwan midwan self-assigned this Sep 11, 2016
@midwan midwan added the bug label Sep 11, 2016
@Fourdee
Copy link

Fourdee commented Sep 11, 2016

@midwan

Suggestion: move the emulator to SDL2. It should provide us with a nice speed boost also, since we can use GPU accelerated functions for the display.

That would be awesome 👍
SDL2 dev library on Jessie = https://packages.debian.org/jessie/libsdl2-dev ?

@midwan midwan changed the title Does not work if OpenGL driver is installed DispManX does not work if OpenGL driver is installed Sep 11, 2016
@midwan
Copy link
Collaborator Author

midwan commented Sep 11, 2016

@Fourdee Yes, that's the one.
I've started experimenting with it a bit, but it will take me some time to fully understand it and add it as a target platform. The old SDL1 calls need to be changed, but also some of the logic that went with it can be replaced with the modern approach that SDL2 offers.

Regarding this issue however, it's not specific to the emulator but rather to the platform in general. I tried other applications as well, everything that used DispManX to open up a screen failed consistently if the OpenGL driver was installed. If you disable the OpenGL driver, things work again.

The SDL2 solution will work, but then we'll have to start things from within a X-session (which we currently do anyway), since it needs a window manager to work with. DispManX provides the low-level resources to glue SDL/GLES/etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants