fredldotme / stereopticon

Moved to: https://github.com/LinuxStereopticon
https://github.com/LinuxStereopticon
1 stars 0 forks source link

guest: Implement window buffer forwarding #1

Open fredldotme opened 3 years ago

fredldotme commented 3 years ago

Allow the guest to read out contents of Mir windows using glReadPixel or similar techniques, and send them over a vsock to the host.

fredldotme commented 3 years ago

This can be done now using shared memory instead of going through the network: https://github.com/fredldotme/qemu/commit/fe6d22a6f01c88c7d6bc872af2a359a6cb8ee8db

Still considering using a Boost.Interprocess-type of allocator in shared memory and reading out buffers at host vsync instead of relying on a ring buffer in shared memory.