mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Refactor state base address programing 3/n
This is small optimization to replace virtual call and retrieved struct with cached value. Related-To: NEO-5055 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
075c96267d
commit
3cb064fe95
@@ -238,7 +238,8 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
|
||||
statelessMocsIndex, // statelessMocsIndex
|
||||
args.useGlobalAtomics, // useGlobalAtomics
|
||||
args.partitionCount > 1, // multiOsContextCapable
|
||||
args.isRcs}; // isRcs
|
||||
args.isRcs, // isRcs
|
||||
container.doubleSbaWa}; // doubleSbaWa
|
||||
EncodeStateBaseAddress<Family>::encode(encodeStateBaseAddressArgs);
|
||||
container.setDirtyStateForAllHeaps(false);
|
||||
}
|
||||
@@ -541,7 +542,6 @@ void EncodeStateBaseAddress<Family>::encode(EncodeStateBaseAddressArgs<Family> &
|
||||
ioh, // ioh
|
||||
ssh, // ssh
|
||||
gmmHelper, // gmmHelper
|
||||
&args.container->getDevice()->getHardwareInfo(), // hwInfo
|
||||
args.statelessMocsIndex, // statelessMocsIndex
|
||||
NEO::MemoryCompressionState::NotApplicable, // memoryCompressionState
|
||||
true, // setInstructionStateBaseAddress
|
||||
@@ -551,7 +551,8 @@ void EncodeStateBaseAddress<Family>::encode(EncodeStateBaseAddressArgs<Family> &
|
||||
args.useGlobalAtomics, // useGlobalAtomics
|
||||
false, // areMultipleSubDevicesInContext
|
||||
false, // overrideSurfaceStateBaseAddress
|
||||
isDebuggerActive // isDebuggerActive
|
||||
isDebuggerActive, // isDebuggerActive
|
||||
args.doubleSbaWa // doubleSbaWa
|
||||
};
|
||||
|
||||
StateBaseAddressHelper<Family>::programStateBaseAddressIntoCommandStream(stateBaseAddressHelperArgs,
|
||||
|
||||
Reference in New Issue
Block a user