winsys/amdgpu: add assert that if kernel fence passes then user fence must pass

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36700>
This commit is contained in:
Yogesh Mohan Marimuthu
2025-08-08 19:31:12 +05:30
committed by Marge Bot
parent 9beb668d8d
commit 700850f29d
@@ -238,6 +238,9 @@ bool amdgpu_fence_wait(struct pipe_fence_handle *fence, uint64_t timeout,
abs_timeout, 0, NULL))
return false;
if (user_fence_cpu)
assert(*user_fence_cpu >= afence->seq_no);
afence->signalled = true;
return true;
}