Skip to content

display: pick gl=off on Windows where virglrenderer is unavailable#65

Open
AngelBob wants to merge 1 commit into
qualcomm:mainfrom
AngelBob:saarnio/display-windows-backend
Open

display: pick gl=off on Windows where virglrenderer is unavailable#65
AngelBob wants to merge 1 commit into
qualcomm:mainfrom
AngelBob:saarnio/display-windows-backend

Conversation

@AngelBob
Copy link
Copy Markdown

Change depends on landing libqemu/v11.0 MR !1571 first.

On Windows-on-ARM, libqemu is built without virglrenderer because
msys2 clangarm64 does not ship it. Requesting "sdl,gl=on" segfaults
at SDL/EGL init since the GL path cannot establish a virgl-backed
context.

Pick "sdl,gl=off" on _WIN32 and "sdl,gl=on" elsewhere. The 2D path
in libqemu requires a companion fix to ui/sdl2 so that sdl2_2d_switch
creates the SDL_Renderer after dpy_window_create; without that fix
the SDL window opens but never paints.

Also log the chosen backend at INFO so it is visible at default
verbosity.

Co-Authored-By: Claude noreply@anthropic.com
Signed-off-by: Steve Aarnio saarnio@qti.qualcomm.com

Change depends on landing libqemu/v11.0 MR !1571 first.

On Windows-on-ARM, libqemu is built without virglrenderer because
msys2 clangarm64 does not ship it. Requesting "sdl,gl=on" segfaults
at SDL/EGL init since the GL path cannot establish a virgl-backed
context.

Pick "sdl,gl=off" on _WIN32 and "sdl,gl=on" elsewhere. The 2D path
in libqemu requires a companion fix to ui/sdl2 so that sdl2_2d_switch
creates the SDL_Renderer after dpy_window_create; without that fix
the SDL window opens but never paints.

Also log the chosen backend at INFO so it is visible at default
verbosity.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Steve Aarnio <saarnio@qti.qualcomm.com>
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.

1 participant