-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Media Common][VP][HWS2] batch buffer cmd for gpu sync
* [Media Common] batch buffer cmd for gpu sync Create a mhwInterface in MOS_INTERFACE. Destroy it in Mos_Ve_Specific_Destroy. Only create mi_itf if m_isMos set. Allocate a sync buffer assoicated to each cmd buffer. Allocate, Free, Bind, Unbind the sync buffer along with the command buffer. Add MI_BATCH_BUFFER_START size when to verfiy the command buffer size. When hal sets gpucontext, set the MOS_INTERFACE::mhwInterface to the gpucontext too. Later gpu context uses it to add sync cmds. When hal gets command buffer, returns the the synbatch buffer too. Add MI_BATCH_BUFFER_START in Mhw_SendGenericPrologCmdNext. If need to sync, add the fence info including the wait value to a list m_waitForFenceList in gpucontext if need to sync. Before submit command buffer to hwqueue, call WaitInSyncBatchBuffer to add the sync cmds in the sync batch buffer. For scalability, set the synbbatch buffer of the primary cmdbuffer to the virtual engine batch buffer.
- Loading branch information
1 parent
e8e3efb
commit 606947d
Showing
13 changed files
with
110 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters