[Mesa-dev] [RFC 0/1] Port dri2GetBuffersWithFormat/dri2GetBuffers to XCB

Michel Dänzer michel at daenzer.net
Wed Apr 26 09:08:51 UTC 2017


On 26/04/17 05:07 PM, Gregory Hainaut wrote:
> Following the discussion in "[PATCH v4 0/3] asynchronous pbo transfer with glthread"
> 
> It will help apps that are ported to XCB.

How so?


> But Xlib (without XInitThread) apps will still crash when glthread is
> enabled on DRI2.

Do the crashes provide information about where glthread is still calling
libX11 APIs?


> I only tested the patch on Nouveau
> 
> There are 3 remaining possibilities
> * Won't fix. DRI3/XCB is the future
> * Enable thread safe Xlib by default (which would make sense in multicore CPU era)
> * Track gl call that will use X11 API to force a sync

Until either of the latter two happens, glthread should only be enabled
with DRI3.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list