Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-20 Thread gregory hainaut
On Thu, 20 Apr 2017 10:56:34 +0900 Michel Dänzer wrote: > On 20/04/17 01:43 AM, gregory hainaut wrote: > > Hello All, > > > > I ported PCSX2 to xcb (at least the non-glx part). Crash is gone :) > > So I can send the v5 with the hash delete fix. > > > > However, Mesa might receive crash bug repo

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-19 Thread Michel Dänzer
On 20/04/17 01:43 AM, gregory hainaut wrote: > Hello All, > > I ported PCSX2 to xcb (at least the non-glx part). Crash is gone :) > So I can send the v5 with the hash delete fix. > > However, Mesa might receive crash bug report when glthread is enabled > on a random app that doesn't use xcb/Xinit

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-19 Thread gregory hainaut
Hello All, I ported PCSX2 to xcb (at least the non-glx part). Crash is gone :) So I can send the v5 with the hash delete fix. However, Mesa might receive crash bug report when glthread is enabled on a random app that doesn't use xcb/XinitThread properly. Maybe it would be better to always enable

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-18 Thread Marek Olšák
All GL calls that might use libX11 must not be asynchronous within glthread. Marek On Apr 18, 2017 10:43 AM, "Gregory Hainaut" wrote: Hello Michel, As yes, I completely forgot about XInitThreads that must be it. I don't know how Nvidia manage to solve/force it. Anyway, I will fix my applicatio

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-18 Thread Gregory Hainaut
Hello Michel, As yes, I completely forgot about XInitThreads that must be it. I don't know how Nvidia manage to solve/force it. Anyway, I will fix my application. Thanks you for the info. On 4/18/17, Michel Dänzer wrote: > On 18/04/17 05:04 PM, gregory hainaut wrote: >> On Tue, 18 Apr 2017 08:5

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-18 Thread Michel Dänzer
On 18/04/17 05:04 PM, gregory hainaut wrote: > On Tue, 18 Apr 2017 08:51:24 +0200 > gregory hainaut wrote: > >> On Mon, 17 Apr 2017 11:17:42 +0900 >> Michel Dänzer wrote: >> >>> On 15/04/17 05:08 PM, gregory hainaut wrote: On Sat, 15 Apr 2017 00:50:15 +0200 Dieter Nützel wrote: >

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-18 Thread gregory hainaut
On Tue, 18 Apr 2017 08:51:24 +0200 gregory hainaut wrote: > On Mon, 17 Apr 2017 11:17:42 +0900 > Michel Dänzer wrote: > > > On 15/04/17 05:08 PM, gregory hainaut wrote: > > > On Sat, 15 Apr 2017 00:50:15 +0200 > > > Dieter Nützel wrote: > > > > > >> Am 14.04.2017 07:53, schrieb gregory hainau

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-18 Thread Michel Dänzer
On 18/04/17 03:51 PM, gregory hainaut wrote: > > However, I have found others crashes on PCSX2 with those patches. It > seems related to synchronization issue with GLX/DRI/X11. This series > removes most of the gl sync for PCSX2. So any missing sync will trigger > a crash. Or I got a not obvious b

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-17 Thread gregory hainaut
On Mon, 17 Apr 2017 11:17:42 +0900 Michel Dänzer wrote: > On 15/04/17 05:08 PM, gregory hainaut wrote: > > On Sat, 15 Apr 2017 00:50:15 +0200 > > Dieter Nützel wrote: > > > >> Am 14.04.2017 07:53, schrieb gregory hainaut: > >>> On Fri, 14 Apr 2017 05:20:38 +0200 > >>> Dieter Nützel wrote: > >>

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-16 Thread Michel Dänzer
On 15/04/17 05:08 PM, gregory hainaut wrote: > On Sat, 15 Apr 2017 00:50:15 +0200 > Dieter Nützel wrote: > >> Am 14.04.2017 07:53, schrieb gregory hainaut: >>> On Fri, 14 Apr 2017 05:20:38 +0200 >>> Dieter Nützel wrote: >>> Am 14.04.2017 02:06, schrieb Dieter Nützel: > Hello Gregory, >>

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-15 Thread gregory hainaut
On Sat, 15 Apr 2017 00:50:15 +0200 Dieter Nützel wrote: > Am 14.04.2017 07:53, schrieb gregory hainaut: > > On Fri, 14 Apr 2017 05:20:38 +0200 > > Dieter Nützel wrote: > > > >> Am 14.04.2017 02:06, schrieb Dieter Nützel: > >> > Hello Gregory, > >> > > >> > have you tested this with Mesa-demos/t

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-14 Thread Dieter Nützel
Am 14.04.2017 07:53, schrieb gregory hainaut: On Fri, 14 Apr 2017 05:20:38 +0200 Dieter Nützel wrote: Am 14.04.2017 02:06, schrieb Dieter Nützel: > Hello Gregory, > > have you tested this with Mesa-demos/tests/pbo 'b' (benchmark)? > It result in crazy numbers and do not 'return' (one core stay

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-13 Thread gregory hainaut
On Fri, 14 Apr 2017 07:53:06 +0200 gregory hainaut wrote: > On Fri, 14 Apr 2017 05:20:38 +0200 > Dieter Nützel wrote: > > > Am 14.04.2017 02:06, schrieb Dieter Nützel: > > > Hello Gregory, > > > > > > have you tested this with Mesa-demos/tests/pbo 'b' (benchmark)? > > > It result in crazy numb

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-13 Thread gregory hainaut
On Fri, 14 Apr 2017 05:20:38 +0200 Dieter Nützel wrote: > Am 14.04.2017 02:06, schrieb Dieter Nützel: > > Hello Gregory, > > > > have you tested this with Mesa-demos/tests/pbo 'b' (benchmark)? > > It result in crazy numbers and do not 'return' (one core stays @ 100%). > > This is related to 'me

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-13 Thread Dieter Nützel
Am 14.04.2017 02:06, schrieb Dieter Nützel: Hello Gregory, have you tested this with Mesa-demos/tests/pbo 'b' (benchmark)? It result in crazy numbers and do not 'return' (one core stays @ 100%). This is related to 'mesa_glthread=true'. If I disable (unset) it, all is fine after 'b' benchmark a

Re: [Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-13 Thread Dieter Nützel
Hello Gregory, have you tested this with Mesa-demos/tests/pbo 'b' (benchmark)? It result in crazy numbers and do not 'return' (one core stays @ 100%). mesa-demos/tests> ./pbo ATTENTION: default value of option mesa_glthread overridden by environment. GL_VERSION = 4.1 Mesa 17.1.0-devel (git-7c8

[Mesa-dev] [PATCH v4 0/3] asynchronous pbo transfer with glthread

2017-04-13 Thread Gregory Hainaut
Hello, Please find a new version to handle invalid buffer handles. Allow to handle this kind of case: genBuffer(&pbo); BindBuffer(pbo) DeleteBuffer(pbo); BindBuffer(rand_pbo) TexSubImage2D(user_memory_pointer); // Data transfer will be synchronous There are various subtely to hand