Xpra: Ticket #2430: Xvfb, xpra with scaling factor doesn't support hardware accelerated opengl

I'm trying to use a rescaled xpra window with an Xvfb server to run an opengl application which doesn't support running at my native screen resolution (only supports up to 1080p, my display has 2160p). I can see in perf top that the application falls back to using swrast_dri.so, instead of radeonsi_dri.so. This means the software renderer is used instead of the hardware backed renderer for the system's AMD GPU. Trying to enable opengl using the command line switch doesn't do anything and using the virgl exec-wrapper fails with "File not found" in the xpra log or with an unknown error. I use run_scaled to run the application.



Fri, 27 Sep 2019 16:40:02 GMT - Antoine Martin: status, description changed; resolution set

See wiki/Usage/OpenGL, in particular vglrun.


Sun, 13 Oct 2019 03:44:01 GMT - Thermi:

This doesn't really help me as the instructions are not detailed enough. Do I use vglrun as exec-wrapper? Before running with xpra? Does this work with scaling factors? Is it hardware dependent? Are there any detailed guides available?


Sun, 13 Oct 2019 05:39:14 GMT - Antoine Martin:

Do I use vglrun as exec-wrapper?

You can do that, yes. Or just vglrun yourapp.

Before running with xpra?

No.

Does this work with scaling factors?

virtualgl has nothing to do with scaling, vglrun just gives you opengl acceleration by delegating the opengl commands to a real GPU. The scaling comes from xpra.

Are there any detailed guides available?

https://virtualgl.org/Documentation/Documentation.


Sat, 23 Jan 2021 05:51:04 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2430