gallium/u_queue: use a ring instead of a stack
authorMarek Olšák <marek.olsak@amd.com>
Sun, 12 Jun 2016 10:54:42 +0000 (12:54 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 24 Jun 2016 10:24:40 +0000 (12:24 +0200)
commitd8367e91f2e3d8426e77674b39f36c09ed9992ec
treefe060afc629bff25253847ca33400b3d0e2dc6b4
parentc36a363a2d305a987ef2ea843fe9fc860b576eed
gallium/u_queue: use a ring instead of a stack

and allow specifying its size in util_queue_init.

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_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c