gallium/u_queue: add an option to have multiple worker threads
authorMarek Olšák <marek.olsak@amd.com>
Sat, 11 Jun 2016 13:40:28 +0000 (15:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 24 Jun 2016 10:24:40 +0000 (12:24 +0200)
commit404d0d50d8aaf60597668e65a2d7c96cdea53aea
tree4bc6013efc181d8678a00ac5f434bc4433772172
parent4358f6dd130680d60d48d6646959c11c8d7ca13d
gallium/u_queue: add an option to have multiple worker threads

independent jobs don't have to be stuck on only one thread

v2: use CALLOC & FREE

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_queue.c
src/gallium/auxiliary/util/u_queue.h
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.h
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c