Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-30 Thread Jose Fonseca
On 29/01/15 17:14, Kristian Høgsberg wrote: On Thu, Jan 29, 2015 at 6:36 AM, Emil Velikov wrote: On 28/01/15 05:08, Kristian Høgsberg wrote: While modern pthread mutexes are very fast, they still incur a call to an external DSO and overhead of the generality and features of pthread mutexes. Mo

Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-29 Thread Emil Velikov
On 29/01/15 17:14, Kristian Høgsberg wrote: > On Thu, Jan 29, 2015 at 6:36 AM, Emil Velikov > wrote: >> On 28/01/15 05:08, Kristian Høgsberg wrote: >>> While modern pthread mutexes are very fast, they still incur a call to an >>> external DSO and overhead of the generality and features of pthread

Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-29 Thread Kristian Høgsberg
On Thu, Jan 29, 2015 at 6:36 AM, Emil Velikov wrote: > On 28/01/15 05:08, Kristian Høgsberg wrote: >> While modern pthread mutexes are very fast, they still incur a call to an >> external DSO and overhead of the generality and features of pthread mutexes. >> Most mutexes in mesa only needs lock/un

Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-29 Thread Emil Velikov
On 28/01/15 05:08, Kristian Høgsberg wrote: > While modern pthread mutexes are very fast, they still incur a call to an > external DSO and overhead of the generality and features of pthread mutexes. > Most mutexes in mesa only needs lock/unlock, and the idea here is that we can > inline the atomic

Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-28 Thread Kristian Høgsberg
On Tue, Jan 27, 2015 at 11:24 PM, Jonathan Gray wrote: > Including under __GNUC__ is going to break the build of > Mesa on everything compiled with clang/gcc that isn't Linux. Good point, I'll add a configure check for futex. thanks, Kristian ___ mesa

Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-27 Thread Jonathan Gray
Including under __GNUC__ is going to break the build of Mesa on everything compiled with clang/gcc that isn't Linux. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-27 Thread Kristian Høgsberg
While modern pthread mutexes are very fast, they still incur a call to an external DSO and overhead of the generality and features of pthread mutexes. Most mutexes in mesa only needs lock/unlock, and the idea here is that we can inline the atomic operation and make the fast case just two intruction