refactor: add command list engine group type and local dispatch getters

Related-To: NEO-12639

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2024-09-14 17:16:30 +00:00
committed by Compute-Runtime-Automation
parent 9eb71a8f29
commit fd4a744650
3 changed files with 13 additions and 0 deletions

View File

@@ -400,6 +400,14 @@ struct CommandList : _ze_command_list_handle_t {
void registerCsrDcFlushForDcMitigation(NEO::CommandStreamReceiver &csr);
NEO::EngineGroupType getEngineGroupType() const {
return engineGroupType;
}
bool getLocalDispatchSupport() const {
return localDispatchSupport;
}
protected:
NEO::GraphicsAllocation *getAllocationFromHostPtrMap(const void *buffer, uint64_t bufferSize, bool copyOffload);
NEO::GraphicsAllocation *getHostPtrAlloc(const void *buffer, uint64_t bufferSize, bool hostCopyAllowed, bool copyOffload);
@@ -491,6 +499,7 @@ struct CommandList : _ze_command_list_handle_t {
bool requiresDcFlushForDcMitigation = false;
bool statelessBuiltinsEnabled = false;
bool lastAppendedKernelBindlessMode = false;
bool localDispatchSupport = false;
};
using CommandListAllocatorFn = CommandList *(*)(uint32_t);

View File

@@ -260,6 +260,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::initialize(Device *device, NEO
this->defaultPipelinedThreadArbitrationPolicy = NEO::debugManager.flags.OverrideThreadArbitrationPolicy.get();
}
this->statelessBuiltinsEnabled = compilerProductHelper.isForceToStatelessRequired();
this->localDispatchSupport = productHelper.getSupportedLocalDispatchSizes(hwInfo).size() > 0;
this->commandContainer.doubleSbaWaRef() = this->doubleSbaWa;
this->commandContainer.l1CachePolicyDataRef() = &this->l1CachePolicyData;