mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Rename HwInfoConfig to ProductHelper
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a1cf7fb938
commit
232b886056
@@ -72,8 +72,8 @@ Kernel::Kernel(Program *programArg, const KernelInfo &kernelInfoArg, ClDevice &c
|
||||
imageTransformer.reset(new ImageTransformer);
|
||||
auto &deviceInfo = getDevice().getDevice().getDeviceInfo();
|
||||
if (kernelInfoArg.kernelDescriptor.kernelAttributes.simdSize == 1u) {
|
||||
auto &hwInfoConfig = *HwInfoConfig::get(getHardwareInfo().platform.eProductFamily);
|
||||
maxKernelWorkGroupSize = hwInfoConfig.getMaxThreadsForWorkgroupInDSSOrSS(getHardwareInfo(), static_cast<uint32_t>(deviceInfo.maxNumEUsPerSubSlice), static_cast<uint32_t>(deviceInfo.maxNumEUsPerDualSubSlice));
|
||||
auto &productHelper = *ProductHelper::get(getHardwareInfo().platform.eProductFamily);
|
||||
maxKernelWorkGroupSize = productHelper.getMaxThreadsForWorkgroupInDSSOrSS(getHardwareInfo(), static_cast<uint32_t>(deviceInfo.maxNumEUsPerSubSlice), static_cast<uint32_t>(deviceInfo.maxNumEUsPerDualSubSlice));
|
||||
} else {
|
||||
maxKernelWorkGroupSize = static_cast<uint32_t>(deviceInfo.maxWorkGroupSize);
|
||||
}
|
||||
@@ -1948,8 +1948,8 @@ std::unique_ptr<KernelObjsForAuxTranslation> Kernel::fillWithKernelObjsForAuxTra
|
||||
}
|
||||
}
|
||||
}
|
||||
const auto &hwInfoConfig = *HwInfoConfig::get(getDevice().getHardwareInfo().platform.eProductFamily);
|
||||
if (hwInfoConfig.allowStatelessCompression(getDevice().getHardwareInfo())) {
|
||||
const auto &productHelper = *ProductHelper::get(getDevice().getHardwareInfo().platform.eProductFamily);
|
||||
if (productHelper.allowStatelessCompression(getDevice().getHardwareInfo())) {
|
||||
for (auto gfxAllocation : kernelUnifiedMemoryGfxAllocations) {
|
||||
if (gfxAllocation->isCompressionEnabled()) {
|
||||
kernelObjsForAuxTranslation->insert({KernelObjForAuxTranslation::Type::GFX_ALLOC, gfxAllocation});
|
||||
@@ -2271,8 +2271,8 @@ bool Kernel::requiresCacheFlushCommand(const CommandQueue &commandQueue) const {
|
||||
}
|
||||
|
||||
void Kernel::updateAuxTranslationRequired() {
|
||||
const auto &hwInfoConfig = *HwInfoConfig::get(getDevice().getHardwareInfo().platform.eProductFamily);
|
||||
if (hwInfoConfig.allowStatelessCompression(getDevice().getHardwareInfo())) {
|
||||
const auto &productHelper = *ProductHelper::get(getDevice().getHardwareInfo().platform.eProductFamily);
|
||||
if (productHelper.allowStatelessCompression(getDevice().getHardwareInfo())) {
|
||||
if (hasDirectStatelessAccessToHostMemory() ||
|
||||
hasIndirectStatelessAccessToHostMemory() ||
|
||||
hasDirectStatelessAccessToSharedBuffer()) {
|
||||
|
||||
Reference in New Issue
Block a user