UPSTREAM: venus: avoid scrubing wsi/external sempahores

When the renderer supports sync_fd import for the binary semaphore,
venus can import the special signaled payload to the semaphore instead
of scrubing it. This avoids the bugs w.r.t timeline semaphore and device
group submission in the legacy scrub path.

BUG=b:233781724
TEST=test app using wsi semaphore along with timeline semaphore

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17975>
(cherry picked from commit ce0e13155d9d1c4c80c73b6866379b99e822facb)
Change-Id: I26483f125b4e2fe17aebd4d1dbb17fd87696316d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/3860720
Reviewed-by: Lepton Wu <lepton@chromium.org>
2 files changed