[Mesa-dev] [PATCH] glsl: Add locking to builtin_builder singleton

2014-02-08 Thread Daniel Kurtz
orted in: https://bugs.freedesktop.org/69200 Signed-off-by: Kenneth Graunke Signed-off-by: Daniel Kurtz --- src/glsl/builtin_functions.cpp | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index aeb8e5d.

Re: [Mesa-dev] [PATCH] glsl: Add locking to builtin_builder singleton

2014-02-17 Thread Daniel Kurtz
On Tue, Feb 11, 2014 at 4:27 PM, Kenneth Graunke wrote: > On 02/07/2014 03:29 AM, Daniel Kurtz wrote: >> Consider a multithreaded program with two contexts A and B, and the >> following scenario: >> >> 1. Context A calls initialize(), which allocates mem_ctx and star