turnip: rework GetSemaphoreFdKHR
authorJonathan Marek <jonathan@marek.ca>
Tue, 29 Sep 2020 02:56:07 +0000 (22:56 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Sep 2020 00:32:40 +0000 (00:32 +0000)
commit8343c32f5af33d773df703b845562385c5126758
treefc0702a5509a5f855fe6da3228f9a0bd3a0b756d
parentfb76af24a228213e37d00b5467b1871281969fea
turnip: rework GetSemaphoreFdKHR

Fixes:
- permanent payload not being restored for the OPAQUE_FD case
- incorrectly resetting the permanent payload in SYNC_FD case

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6719>
src/freedreno/vulkan/tu_drm.c