Skip to content

add syncFdFencing feature

Yiwei Zhang requested to merge zzyiwei/venus-protocol:vn-reset-sync into master

Properly reset the sync_fd fence/sempahore which the app has believed to be reset after export.

  • vn_GetFenceFdKHR to call vkResetFenceResource100000MESA to export and close the valid fd to align with the implicit fence reset operation
  • vn_GetSemaphoreFdKHR to call vkWaitSemaphoreResource100000MESA 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 special resourceId 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:

Edited by Yiwei Zhang

Merge request reports

Loading