Re: [Mesa-dev] [PATCH v4 09/11] vmwgfx: use common screen ref counting

2016-07-26 Thread Emil Velikov
On 26 July 2016 at 10:59, Emil Velikov wrote: > On 22 July 2016 at 17:22, Rob Herring wrote: > >> @@ -100,11 +72,8 @@ vmw_winsys_create( int fd ) >> if (!vmw_winsys_screen_init_svga(vws)) >>goto out_no_svga; >> >> - if (util_hash_table_set(dev_hash, &vws->device, vws) != PIPE_OK) >>

Re: [Mesa-dev] [PATCH v4 09/11] vmwgfx: use common screen ref counting

2016-07-26 Thread Emil Velikov
On 22 July 2016 at 17:22, Rob Herring wrote: > @@ -100,11 +72,8 @@ vmw_winsys_create( int fd ) > if (!vmw_winsys_screen_init_svga(vws)) >goto out_no_svga; > > - if (util_hash_table_set(dev_hash, &vws->device, vws) != PIPE_OK) > - goto out_no_hash_insert; > - Any reason why you

Re: [Mesa-dev] [PATCH v4 09/11] vmwgfx: use common screen ref counting

2016-07-25 Thread Brian Paul
On 07/22/2016 10:22 AM, Rob Herring wrote: Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Signed-off-by: Rob Herring --- src/gallium/auxiliary/target-helpers/drm_helper.h | 2 +- src/gallium/d

[Mesa-dev] [PATCH v4 09/11] vmwgfx: use common screen ref counting

2016-07-22 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Signed-off-by: Rob Herring --- src/gallium/auxiliary/target-helpers/drm_helper.h | 2 +- src/gallium/drivers/svga/svga_public.h| 2 +- s