mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Lock csr inside executeCommandLists() to make submissions thread safe
Change-Id: I9326ee5bb835f01015668e66d2582df9ed02d66f
This commit is contained in:
committed by
sys_ocldev
parent
5dbf7d5f8c
commit
bf57f2d696
@@ -69,6 +69,8 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
|
||||
using PIPE_CONTROL = typename GfxFamily::PIPE_CONTROL;
|
||||
using POST_SYNC_OPERATION = typename PIPE_CONTROL::POST_SYNC_OPERATION;
|
||||
|
||||
auto lockCSR = csr->obtainUniqueOwnership();
|
||||
|
||||
for (auto i = 0u; i < numCommandLists; i++) {
|
||||
auto commandList = CommandList::fromHandle(phCommandLists[i]);
|
||||
if (isCopyOnlyCommandQueue != commandList->isCopyOnly()) {
|
||||
|
||||
Reference in New Issue
Block a user