amdgpu: add semaphore support

Graphics / Mesa 3D Graphics Library / libdrm - Marek Olšák [amd.com] - 19 January 2016 19:14 UTC

the semaphore is a binary semaphore. the work flow is: 1. create sem 2. signal sem 3. wait sem, reset sem after signalled 4. destroy sem.

6afadea amdgpu: add semaphore support
amdgpu/amdgpu.h | 65 +++++++++++++++++
amdgpu/amdgpu_cs.c | 173 ++++++++++++++++++++++++++++++++++++++++++++--
amdgpu/amdgpu_internal.h | 15 ++++
3 files changed, 249 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share