add syncFdFencing feature
Properly reset the sync_fd fence/sempahore which the app has believed to be reset after export.
-
vn_GetFenceFdKHR
to callvkResetFenceResource100000MESA
to export and close the valid fd to align with the implicit fence reset operation -
vn_GetSemaphoreFdKHR
to callvkWaitSemaphoreResource100000MESA
to export and close the valid fd to align with implicit semaphore wait operation - With this feature, renderer sync fd fencing support is forwarded to the driver.
Handle wsi semaphore more naturally.
- Upon submission, call
vkImportSemaphoreResource100000MESA
with a specialresourceId
0 to let renderer import signaled sync_fd -1 into the host side semaphore. Then we no longer need to scrub those wsi wait semaphores, which becomes a heavier operation when involving timeline semaphore and/or device group.
MRs:
- driver: mesa/mesa!17975 (merged)
- renderer: virglrenderer!875 (merged)
Edited by Yiwei Zhang