gallium/os: add os_wait_until_zero (v2)
authorMarek Olšák <marek.olsak@amd.com>
Thu, 25 Jun 2015 18:39:34 +0000 (20:39 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jul 2015 13:08:59 +0000 (15:08 +0200)
commit3836857a777a248dd212ce7a1d7307d2984fda7d
treef08d49934b2f8337e5e9c59506635d4d1472ea2a
parent245b464d5caa21680373ae5929dccd294078cc50
gallium/os: add os_wait_until_zero (v2)

This will be used by radeon and amdgpu winsyses.
Copied from the amdgpu winsys.

v2: use volatile and p_atomic_read

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/os/os_time.c
src/gallium/auxiliary/os/os_time.h