Skip to content

core/syncobjtimeline: import release fence at correct timeline point

Erik Kurzinger requested to merge ekurzinger/kwin:master into master

SyncTimeline::moveInto imports the provided fence to the syncobj by calling drmSyncobjImportSyncFile. However, that function assumes the syncobj a binary syncobj, meaning the fence will be imported at timeline point 0, not at the intended timeline point.

Since there is no timeline equivalent of drmSyncobjImportSyncFile, to achieve the correct behavior we create a temporary binary syncobj, import the fence into that, and then use drmSyncobjTransfer to transfer the fence to the desired timeline point on the destination syncobj.

Merge request reports