gregory hainaut <gregory.hain...@gmail.com> writes: > On Fri, 5 May 2017 17:45:01 +0200 > Axel Davy <axel.d...@normalesup.org> wrote: > >> Hi, >> >> There should be very few X11 calls while rendering (basically only at >> the beginning or end of a frame). >> >> Why not just always run these calls in the main thread (and wait for >> glthread work to finish) ? >> >> That's basically what we do for gallium nine. >> >> Yours, >> >> Axel > > Hello Axel, > > Yes it is another possibility. It would requires to track gl calls that end > up in X11. > I'm not sure if there is an easy way to list all those gl functions. There > are at least the > draw calls and maybe the clear operations. Besides I'm afraid that we will > need to handle > various corner cases of the OpenGL API. It is doable but likely more > complicated.
General GL calls (draws, clears) won't call X11 except for DRI2's GetBuffers. If you're in DRI3, I believe you won't need to worry about that at all. I think this patch is a good start, though.
signature.asc
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev