mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
refactor: useGlobalHeaps naming unification
Related-to: NEO-12737 Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
b859a3b35b
commit
9a149b6da5
@ -3321,6 +3321,7 @@ void CommandListCoreFamily<gfxCoreFamily>::updateStreamPropertiesForRegularComma
|
||||
auto &kernelAttributes = kernel.getKernelDescriptor().kernelAttributes;
|
||||
|
||||
const auto bindlessHeapsHelper = device->getNEODevice()->getBindlessHeapsHelper();
|
||||
const bool useGlobalHeaps = bindlessHeapsHelper != nullptr;
|
||||
|
||||
KernelImp &kernelImp = static_cast<KernelImp &>(kernel);
|
||||
|
||||
@ -3333,8 +3334,8 @@ void CommandListCoreFamily<gfxCoreFamily>::updateStreamPropertiesForRegularComma
|
||||
if (currentSurfaceStateBaseAddress == NEO::StreamProperty64::initValue || commandContainer.isHeapDirty(NEO::IndirectHeap::Type::surfaceState)) {
|
||||
auto ssh = commandContainer.getIndirectHeap(NEO::IndirectHeap::Type::surfaceState);
|
||||
if (ssh) {
|
||||
currentSurfaceStateBaseAddress = NEO::getStateBaseAddressForSsh(*ssh, bindlessHeapsHelper);
|
||||
currentSurfaceStateSize = NEO::getStateSizeForSsh(*ssh, bindlessHeapsHelper);
|
||||
currentSurfaceStateBaseAddress = NEO::getStateBaseAddressForSsh(*ssh, useGlobalHeaps);
|
||||
currentSurfaceStateSize = NEO::getStateSizeForSsh(*ssh, useGlobalHeaps);
|
||||
|
||||
currentBindingTablePoolBaseAddress = currentSurfaceStateBaseAddress;
|
||||
currentBindingTablePoolSize = currentSurfaceStateSize;
|
||||
@ -3347,8 +3348,8 @@ void CommandListCoreFamily<gfxCoreFamily>::updateStreamPropertiesForRegularComma
|
||||
if (this->dynamicHeapRequired && (currentDynamicStateBaseAddress == NEO::StreamProperty64::initValue || commandContainer.isHeapDirty(NEO::IndirectHeap::Type::dynamicState))) {
|
||||
auto dsh = commandContainer.getIndirectHeap(NEO::IndirectHeap::Type::dynamicState);
|
||||
|
||||
currentDynamicStateBaseAddress = NEO::getStateBaseAddress(*dsh, bindlessHeapsHelper);
|
||||
currentDynamicStateSize = NEO::getStateSize(*dsh, bindlessHeapsHelper);
|
||||
currentDynamicStateBaseAddress = NEO::getStateBaseAddress(*dsh, useGlobalHeaps);
|
||||
currentDynamicStateSize = NEO::getStateSize(*dsh, useGlobalHeaps);
|
||||
|
||||
checkDsh = true;
|
||||
}
|
||||
|
@ -1654,6 +1654,7 @@ void CommandQueueHw<gfxCoreFamily>::updateBaseAddressState(CommandList *lastComm
|
||||
auto &streamProperties = this->csr->getStreamProperties();
|
||||
|
||||
const auto bindlessHeapsHelper = device->getNEODevice()->getBindlessHeapsHelper();
|
||||
const bool useGlobalHeaps = bindlessHeapsHelper != nullptr;
|
||||
|
||||
auto &commandContainer = lastCommandList->getCmdContainer();
|
||||
|
||||
@ -1664,8 +1665,8 @@ void CommandQueueHw<gfxCoreFamily>::updateBaseAddressState(CommandList *lastComm
|
||||
} else {
|
||||
auto dsh = commandContainer.getIndirectHeap(NEO::HeapType::dynamicState);
|
||||
if (dsh != nullptr) {
|
||||
auto stateBaseAddress = NEO::getStateBaseAddress(*dsh, bindlessHeapsHelper);
|
||||
auto stateSize = NEO::getStateSize(*dsh, bindlessHeapsHelper);
|
||||
auto stateBaseAddress = NEO::getStateBaseAddress(*dsh, useGlobalHeaps);
|
||||
auto stateSize = NEO::getStateSize(*dsh, useGlobalHeaps);
|
||||
|
||||
csrHw->getDshState().updateAndCheck(dsh, stateBaseAddress, stateSize);
|
||||
streamProperties.stateBaseAddress.setPropertiesDynamicState(stateBaseAddress, stateSize);
|
||||
@ -1673,8 +1674,8 @@ void CommandQueueHw<gfxCoreFamily>::updateBaseAddressState(CommandList *lastComm
|
||||
|
||||
auto ssh = commandContainer.getIndirectHeap(NEO::HeapType::surfaceState);
|
||||
if (ssh != nullptr) {
|
||||
auto stateBaseAddress = NEO::getStateBaseAddressForSsh(*ssh, bindlessHeapsHelper);
|
||||
auto stateSize = NEO::getStateSizeForSsh(*ssh, bindlessHeapsHelper);
|
||||
auto stateBaseAddress = NEO::getStateBaseAddressForSsh(*ssh, useGlobalHeaps);
|
||||
auto stateSize = NEO::getStateSizeForSsh(*ssh, useGlobalHeaps);
|
||||
|
||||
csrHw->getSshState().updateAndCheck(ssh, stateBaseAddress, stateSize);
|
||||
streamProperties.stateBaseAddress.setPropertiesBindingTableSurfaceState(stateBaseAddress,
|
||||
|
Reference in New Issue
Block a user