Re:First fully sandboxed Linux desktop app
by alexlarsson on Tuesday February 17, 2015 @03:51PM
(#9064875)
Sharing a normal memory mapping is not necessarily what is required here though. What you want is to share the same GPU-side memory buffer between two processes. It may not even be mappable to cpu side memory.
[ Parent
| on HN ]
Re:First fully sandboxed Linux desktop app
by comex on Tuesday February 17, 2015 @04:10PM
(#9065031)
If it's mapped into the CPU address space, then it can be shared. If not, then there is a copy going on and you may as well just do it in the non-sandboxed process, no?
Re:First fully sandboxed Linux desktop app
by alexlarsson on Wednesday February 18, 2015 @02:34AM
(#9067417)
There is no copy. You have a reference to a GPU side buffer, and you want to pass a reference to that buffer to another process, where it will continue to use the GPU to access it.