This will be used by radeon and amdgpu winsyses. Copied from the amdgpu winsys.
v2: use volatile and p_atomic_read
3836857 gallium/os: add os_wait_until_zero (v2)
src/gallium/auxiliary/os/os_time.c | 38 +++++++++++++++++++++++++++++++++++-
src/gallium/auxiliary/os/os_time.h | 11 +++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
Upstream: cgit.freedesktop.org