[Mesa-dev] Mesa drivers/GLX and fork
Christian König
deathsimple at vodafone.de
Tue Oct 15 12:45:32 CEST 2013
Hi Marek,
for the past few days I've been working on solving
https://bugs.freedesktop.org/show_bug.cgi?id=70123.
The basic problem is that compton forks itself into the background after
initializing the X server connection and GLX context. What happens now
is that only comptons main thread get's cloned by the fork, but not any
background thread created by the radeon winsys to offload the command
submission (that is common and very well known pthread behaviour).
I'm not 100% sure if comptons behaviour is valid or not and so if we
should try to fix it or not. On the one hand it should be transparent to
the application that we created another thread to offload some work from
the main thread, but on on the other hand dublicating the X connection
and GLX context with fork just screams for problems.
Any idea what the spec(s) say about this?
Thanks,
Christian.
More information about the mesa-dev
mailing list