Re: [Mesa-dev] [PATCH 5/7] u_queue: add a futex-based implementation of fences

2017-10-23 Thread Grazvydas Ignotas
On Mon, Oct 23, 2017 at 4:04 PM, Nicolai Hähnle wrote: > On 23.10.2017 13:50, Grazvydas Ignotas wrote: >> >> On Sun, Oct 22, 2017 at 9:33 PM, Nicolai Hähnle >> wrote: >>> >>> From: Nicolai Hähnle >>> >>> Fences are now 4 bytes instead of 96 bytes (on my 64-bit system). >>> >>> Signaling a fence

Re: [Mesa-dev] [PATCH 5/7] u_queue: add a futex-based implementation of fences

2017-10-23 Thread Nicolai Hähnle
On 23.10.2017 13:50, Grazvydas Ignotas wrote: On Sun, Oct 22, 2017 at 9:33 PM, Nicolai Hähnle wrote: From: Nicolai Hähnle Fences are now 4 bytes instead of 96 bytes (on my 64-bit system). Signaling a fence is a single atomic operation in the fast case plus a syscall in the slow case. Testin

Re: [Mesa-dev] [PATCH 5/7] u_queue: add a futex-based implementation of fences

2017-10-23 Thread Grazvydas Ignotas
On Sun, Oct 22, 2017 at 9:33 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Fences are now 4 bytes instead of 96 bytes (on my 64-bit system). > > Signaling a fence is a single atomic operation in the fast case plus a > syscall in the slow case. > > Testing if a fence is signaled is the same

[Mesa-dev] [PATCH 5/7] u_queue: add a futex-based implementation of fences

2017-10-22 Thread Nicolai Hähnle
From: Nicolai Hähnle Fences are now 4 bytes instead of 96 bytes (on my 64-bit system). Signaling a fence is a single atomic operation in the fast case plus a syscall in the slow case. Testing if a fence is signaled is the same as before (a simple comparison), but waiting on a fence is now no mo