mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
feature: global bindless surface state base support
- program global bindless ssba when external allocator used ( UseExternalAllocatorForSshAndDsh) Related-To: NEO-7063 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
11c96559a9
commit
4aba0f0340
@@ -1816,6 +1816,11 @@ inline void CommandStreamReceiverHw<GfxFamily>::programStateBaseAddressCommon(
|
||||
|
||||
auto stateBaseAddressCmdOffset = csrCommandStream.getUsed();
|
||||
auto instructionHeapBaseAddress = getMemoryManager()->getInternalHeapBaseAddress(rootDeviceIndex, getMemoryManager()->isLocalMemoryUsedForIsa(rootDeviceIndex));
|
||||
auto bindlessSurfStateBase = 0ull;
|
||||
|
||||
if (device.getBindlessHeapsHelper()) {
|
||||
bindlessSurfStateBase = device.getBindlessHeapsHelper()->getGlobalHeapsBase();
|
||||
}
|
||||
|
||||
STATE_BASE_ADDRESS stateBaseAddressCmd;
|
||||
StateBaseAddressHelperArgs<GfxFamily> args = {
|
||||
@@ -1824,6 +1829,7 @@ inline void CommandStreamReceiverHw<GfxFamily>::programStateBaseAddressCommon(
|
||||
instructionHeapBaseAddress, // instructionHeapBaseAddress
|
||||
0, // globalHeapsBaseAddress
|
||||
0, // surfaceStateBaseAddress
|
||||
bindlessSurfStateBase, // bindlessSurfaceStateBaseAddress
|
||||
&stateBaseAddressCmd, // stateBaseAddressCmd
|
||||
sbaProperties, // sbaProperties
|
||||
dsh, // dsh
|
||||
|
||||
Reference in New Issue
Block a user