Add ownership management when ensuring space for shared heaps

Related-To: NEO-7142

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-10-04 11:19:00 +00:00
committed by Compute-Runtime-Automation
parent cdac54de1d
commit 9cd47ffeaf
2 changed files with 8 additions and 1 deletions

View File

@@ -353,6 +353,7 @@ IndirectHeap *CommandContainer::getIndirectHeap(HeapType heapType) {
}
void CommandContainer::ensureHeapSizePrepared(size_t sshRequiredSize, size_t dshRequiredSize) {
auto lock = immediateCmdListCsr->obtainUniqueOwnership();
sharedSshCsrHeap = &immediateCmdListCsr->getIndirectHeap(HeapType::SURFACE_STATE, sshRequiredSize);
if (dshRequiredSize > 0) {