mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
cdac54de1d
commit
9cd47ffeaf
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user