{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/6170","repository_url":"https://api.github.com/repos/mpv-player/mpv","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/6170/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/6170/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/6170/events","html_url":"https://github.com/mpv-player/mpv/pull/6170","id":365180575,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MTc3NjQ0","number":6170,"title":"Implement cuda/nvdev hwdec for vulkan backend","user":{"login":"philipl","id":512286,"node_id":"MDQ6VXNlcjUxMjI4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/512286?v=4","gravatar_id":"","url":"https://api.github.com/users/philipl","html_url":"https://github.com/philipl","followers_url":"https://api.github.com/users/philipl/followers","following_url":"https://api.github.com/users/philipl/following{/other_user}","gists_url":"https://api.github.com/users/philipl/gists{/gist_id}","starred_url":"https://api.github.com/users/philipl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipl/subscriptions","organizations_url":"https://api.github.com/users/philipl/orgs","repos_url":"https://api.github.com/users/philipl/repos","events_url":"https://api.github.com/users/philipl/events{/privacy}","received_events_url":"https://api.github.com/users/philipl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-09-30T01:09:35Z","updated_at":"2018-10-22T19:27:53Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/6170","html_url":"https://github.com/mpv-player/mpv/pull/6170","diff_url":"https://github.com/mpv-player/mpv/pull/6170.diff","patch_url":"https://github.com/mpv-player/mpv/pull/6170.patch"},"body":"This is a working implementation of nvdec acceleration with the vulkan backend using the new CUDA 10 vulkan interop API. Due to bad documentation, I haven't yet worked out how to work with a VkImage directly in CUDA, and have needed to use an intermediate VkBuffer as the target for the copy from CUDA, which is then copied to the VkImage texture.\r\n\r\nThe implementation only works on Linux as the windows memory export mechanism is slightly different and I can't test it.\r\n\r\nFinally, I did not attempt to do any semaphore based synchronisation between cuda and vulkan. The interop API supports exporting a vulkan semaphore and using it from CUDA. One can imagine this would be necessary to ensure the CUDA copy is correctly synchronised. I can believe that the existing barrier logic on the buffer -> image copy on the vulkan side is sufficient; certainly there is no visual indication of a synchronisation problem."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/431948962","html_url":"https://github.com/mpv-player/mpv/pull/6170#issuecomment-431948962","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/6170","id":431948962,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTk0ODk2Mg==","user":{"login":"philipl","id":512286,"node_id":"MDQ6VXNlcjUxMjI4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/512286?v=4","gravatar_id":"","url":"https://api.github.com/users/philipl","html_url":"https://github.com/philipl","followers_url":"https://api.github.com/users/philipl/followers","following_url":"https://api.github.com/users/philipl/following{/other_user}","gists_url":"https://api.github.com/users/philipl/gists{/gist_id}","starred_url":"https://api.github.com/users/philipl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipl/subscriptions","organizations_url":"https://api.github.com/users/philipl/orgs","repos_url":"https://api.github.com/users/philipl/repos","events_url":"https://api.github.com/users/philipl/events{/privacy}","received_events_url":"https://api.github.com/users/philipl/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T19:27:53Z","updated_at":"2018-10-22T19:27:53Z","author_association":"CONTRIBUTOR","body":"That logs says that nvdec isn't compiled in. Did you update your nv-codec-headers?"}}
{"actor":{"display_login":"philipl"}}