[fix] pass command list heap address model to container

This fix will allow save memory and do not allocate private heaps
when global heaps are enabled.

Related-To: NEO-5055

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-03-28 13:57:57 +00:00
committed by Compute-Runtime-Automation
parent 4475e2228d
commit a761003f4b
2 changed files with 14 additions and 1 deletions

View File

@@ -169,6 +169,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::initialize(Device *device, NEO
this->l1CachePolicyData.init(productHelper);
this->commandContainer.l1CachePolicyDataRef() = &this->l1CachePolicyData;
this->cmdListHeapAddressModel = L0GfxCoreHelper::getHeapAddressModel(rootDeviceEnvironment);
this->commandContainer.setHeapAddressModel(this->cmdListHeapAddressModel);
this->requiredStreamState.initSupport(rootDeviceEnvironment);
this->finalStreamState.initSupport(rootDeviceEnvironment);
this->commandContainer.setStateBaseAddressTracking(this->stateBaseAddressTracking);