Re: [Mesa-dev] [PATCH 1/2] gallium/drivers: Add threadsafe wrappers for pipe_context v2

2015-08-01 Thread Emil Velikov
On 11 July 2015 at 02:55, Tom Stellard thomas.stell...@amd.com wrote: These wrappers can be used by state trackers to ensure threadsafe access to pipe_context objects. v2: - Don't add wrappers for pipe_screen. - Build system cleanups CC: 10.6 mesa-sta...@lists.freedesktop.org Humble

Re: [Mesa-dev] [PATCH 1/2] gallium/drivers: Add threadsafe wrappers for pipe_context v2

2015-07-11 Thread Marek Olšák
Hi, the surface_destroy and sampler_view_destroy wrappers won't be called, because surface-context and view-context are always used for those calls and context points to the driver context in this case. The solution is to update the context pointer in create_sampler_view and create_surface if you

[Mesa-dev] [PATCH 1/2] gallium/drivers: Add threadsafe wrappers for pipe_context v2

2015-07-10 Thread Tom Stellard
These wrappers can be used by state trackers to ensure threadsafe access to pipe_context objects. v2: - Don't add wrappers for pipe_screen. - Build system cleanups CC: 10.6 mesa-sta...@lists.freedesktop.org --- configure.ac | 1 +