2021-08-30 14:34:53 +00:00
|
|
|
/*
|
2023-01-02 12:19:09 +00:00
|
|
|
* Copyright (C) 2021-2023 Intel Corporation
|
2021-08-30 14:34:53 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-12-07 11:22:25 +00:00
|
|
|
#include "shared/source/aub_mem_dump/aub_mem_dump.h"
|
2022-07-14 10:37:55 +00:00
|
|
|
#include "shared/source/helpers/cache_policy.h"
|
2021-09-14 11:41:01 +00:00
|
|
|
#include "shared/source/helpers/constants.h"
|
2023-02-06 09:05:43 +00:00
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2023-03-08 09:30:38 +00:00
|
|
|
#include "shared/source/helpers/hw_mapper.h"
|
2022-11-28 19:00:39 +00:00
|
|
|
#include "shared/source/helpers/local_memory_access_modes.h"
|
2023-03-10 12:28:11 +00:00
|
|
|
#include "shared/source/os_interface/product_helper.h"
|
2023-02-06 09:05:43 +00:00
|
|
|
#include "shared/source/os_interface/product_helper_hw.h"
|
2021-08-30 14:34:53 +00:00
|
|
|
|
2021-09-14 11:41:01 +00:00
|
|
|
namespace NEO {
|
2021-08-30 14:34:53 +00:00
|
|
|
|
|
|
|
|
template <>
|
2023-01-02 12:19:09 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getMaxThreadsForWorkgroupInDSSOrSS(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice, uint32_t maxNumEUsPerDualSubSlice) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getMaxThreadsForWorkgroup(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2023-01-05 16:57:56 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::setForceNonCoherent(void *const commandPtr, const StateComputeModeProperties &properties) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
2021-08-30 14:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getHostMemCapabilities(const HardwareInfo *hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getDeviceMemCapabilities() const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getSingleDeviceSharedMemCapabilities() const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getCrossDeviceSharedMemCapabilities() const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-01 15:14:07 +00:00
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getSharedSystemMemCapabilities(const HardwareInfo *hwInfo) const {
|
2021-12-01 15:14:07 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-30 14:34:53 +00:00
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::getKernelExtendedProperties(uint32_t *fp16, uint32_t *fp32, uint32_t *fp64) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
2021-11-30 12:43:06 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::overrideGfxPartitionLayoutForWsl() const {
|
2021-11-30 12:43:06 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-30 14:34:53 +00:00
|
|
|
template <>
|
2022-12-20 15:13:56 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getDeviceMemoryMaxClkRate(const HardwareInfo &hwInfo, const OSInterface *osIface, uint32_t subDeviceIndex) const {
|
2022-06-30 08:04:45 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-20 15:13:56 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getDeviceMemoryPhysicalSizeInBytes(const OSInterface *osIface, uint32_t subDeviceIndex) const {
|
2022-06-30 08:04:45 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-20 15:13:56 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getDeviceMemoryMaxBandWidthInBytesPerSecond(const HardwareInfo &hwInfo, const OSInterface *osIface, uint32_t subDeviceIndex) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isAdditionalStateBaseAddressWARequired(const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isMaxThreadsForWorkgroupWARequired(const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::obtainBlitterPreference(const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-27 20:22:31 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isBlitterFullySupported(const HardwareInfo &hwInfo) const {
|
2021-10-27 20:22:31 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-30 14:34:53 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isPageTableManagerSupported(const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-10 17:27:38 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getSteppingFromHwRevId(const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getAubStreamSteppingFromHwRevId(const HardwareInfo &hwInfo) const {
|
2021-08-30 14:34:53 +00:00
|
|
|
switch (getSteppingFromHwRevId(hwInfo)) {
|
|
|
|
|
default:
|
|
|
|
|
case REVISION_A0:
|
|
|
|
|
case REVISION_A1:
|
|
|
|
|
case REVISION_A3:
|
|
|
|
|
return AubMemDump::SteppingValues::A;
|
|
|
|
|
case REVISION_B:
|
|
|
|
|
return AubMemDump::SteppingValues::B;
|
|
|
|
|
case REVISION_C:
|
|
|
|
|
return AubMemDump::SteppingValues::C;
|
|
|
|
|
case REVISION_D:
|
|
|
|
|
return AubMemDump::SteppingValues::D;
|
|
|
|
|
case REVISION_K:
|
|
|
|
|
return AubMemDump::SteppingValues::K;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-31 15:17:18 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
std::string ProductHelperHw<IGFX_UNKNOWN>::getDeviceMemoryName() const {
|
2021-08-31 15:17:18 +00:00
|
|
|
return "";
|
|
|
|
|
}
|
2021-08-30 14:34:53 +00:00
|
|
|
|
2021-09-02 11:11:39 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isDefaultEngineTypeAdjustmentRequired(const HardwareInfo &hwInfo) const {
|
2021-09-02 11:11:39 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-06 10:34:34 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isDisableOverdispatchAvailable(const HardwareInfo &hwInfo) const {
|
2021-09-06 10:34:34 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-06 15:21:40 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::allowCompression(const HardwareInfo &hwInfo) const {
|
2021-09-08 15:07:46 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-22 12:49:26 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const {
|
2021-11-22 12:49:26 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-21 11:40:18 +00:00
|
|
|
template <>
|
|
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isDirectSubmissionConstantCacheInvalidationNeeded(const HardwareInfo &hwInfo) const {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-09 12:27:41 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
LocalMemoryAccessMode ProductHelperHw<IGFX_UNKNOWN>::getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const {
|
2021-09-09 12:27:41 +00:00
|
|
|
return LocalMemoryAccessMode::Default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
LocalMemoryAccessMode ProductHelperHw<IGFX_UNKNOWN>::getLocalMemoryAccessMode(const HardwareInfo &hwInfo) const {
|
2021-09-09 12:27:41 +00:00
|
|
|
return LocalMemoryAccessMode::Default;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-10 00:37:27 +00:00
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
std::vector<int32_t> ProductHelperHw<IGFX_UNKNOWN>::getKernelSupportedThreadArbitrationPolicies() const {
|
2022-03-07 17:00:26 +00:00
|
|
|
return {};
|
2021-09-10 00:37:27 +00:00
|
|
|
}
|
|
|
|
|
|
2021-09-14 14:57:43 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isAllocationSizeAdjustmentRequired(const HardwareInfo &hwInfo) const {
|
2021-09-14 14:57:43 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-20 12:05:09 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isNewResidencyModelSupported() const {
|
2021-09-20 12:05:09 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-21 12:29:24 +00:00
|
|
|
template <>
|
2023-05-12 14:49:39 +00:00
|
|
|
std::pair<bool, bool> ProductHelperHw<IGFX_UNKNOWN>::isPipeControlPriorToNonPipelinedStateCommandsWARequired(const HardwareInfo &hwInfo, bool isRcs, const ReleaseHelper *releaseHelper) const {
|
2022-02-04 15:43:17 +00:00
|
|
|
return {false, false};
|
2021-09-21 12:29:24 +00:00
|
|
|
}
|
|
|
|
|
|
2021-09-21 13:34:25 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::heapInLocalMem(const HardwareInfo &hwInfo) const {
|
2021-09-21 13:34:25 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-22 14:39:01 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::setCapabilityCoherencyFlag(const HardwareInfo &hwInfo, bool &coherencyFlag) {
|
2021-09-22 14:39:01 +00:00
|
|
|
}
|
|
|
|
|
|
2023-02-21 14:27:13 +00:00
|
|
|
template <>
|
|
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isInitBuiltinAsyncSupported(const HardwareInfo &hwInfo) const {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-23 15:08:41 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isAdditionalMediaSamplerProgrammingRequired() const {
|
2021-09-23 15:08:41 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isInitialFlagsProgrammingRequired() const {
|
2021-09-23 15:08:41 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isReturnedCmdSizeForMediaSamplerAdjustmentRequired() const {
|
2021-09-23 15:08:41 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-23 17:46:36 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::extraParametersInvalid(const HardwareInfo &hwInfo) const {
|
2021-09-23 17:46:36 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-24 14:29:49 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::pipeControlWARequired(const HardwareInfo &hwInfo) const {
|
2021-09-24 14:29:49 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::imagePitchAlignmentWARequired(const HardwareInfo &hwInfo) const {
|
2021-09-24 14:29:49 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) const {
|
2021-09-24 14:29:49 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::is3DPipelineSelectWARequired() const {
|
2021-09-24 14:29:49 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-28 10:54:52 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isStorageInfoAdjustmentRequired() const {
|
2021-09-28 10:54:52 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-13 13:30:45 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isBlitterForImagesSupported() const {
|
2021-10-13 13:30:45 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-15 15:24:03 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isTile64With3DSurfaceOnBCSSupported(const HardwareInfo &hwInfo) const {
|
2021-10-15 15:24:03 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
2021-12-20 14:37:33 +00:00
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isDcFlushAllowed() const {
|
2021-12-20 14:37:33 +00:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-30 10:19:27 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::computeMaxNeededSubSliceSpace(const HardwareInfo &hwInfo) const {
|
2021-11-30 10:19:27 +00:00
|
|
|
return hwInfo.gtSystemInfo.MaxSubSlicesSupported;
|
|
|
|
|
}
|
2021-10-15 15:24:03 +00:00
|
|
|
|
2021-11-26 09:40:06 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::getUuid(Device *device, std::array<uint8_t, ProductHelper::uuidSize> &uuid) const {
|
2021-11-26 09:40:06 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-17 21:44:55 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isFlushTaskAllowed() const {
|
2022-02-17 21:44:55 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-07 14:31:53 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::programAllStateComputeCommandFields() const {
|
2022-03-07 14:31:53 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-09 15:39:57 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isComputeDispatchAllWalkerEnableInComputeWalkerRequired(const HardwareInfo &hwInfo) const {
|
2022-03-09 15:39:57 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-20 15:46:54 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isCopyEngineSelectorEnabled(const HardwareInfo &hwInfo) const {
|
2022-09-20 15:46:54 +00:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-09 15:39:57 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isGlobalFenceInCommandStreamRequired(const HardwareInfo &hwInfo) const {
|
2022-03-09 15:39:57 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isAdjustProgrammableIdPreferredSlmSizeRequired(const HardwareInfo &hwInfo) const {
|
2022-03-09 15:39:57 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getThreadEuRatioForScratch(const HardwareInfo &hwInfo) const {
|
2022-03-21 17:44:02 +00:00
|
|
|
return 8u;
|
2022-03-09 15:39:57 +00:00
|
|
|
}
|
|
|
|
|
|
2022-03-30 16:00:43 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isIpSamplingSupported(const HardwareInfo &hwInfo) const {
|
2022-03-30 16:00:43 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-11 17:13:44 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isVmBindPatIndexProgrammingSupported() const {
|
2022-04-11 17:13:44 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-13 17:20:59 +00:00
|
|
|
template <>
|
2023-01-05 16:57:56 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::updateScmCommand(void *const commandPtr, const StateComputeModeProperties &properties) const {
|
2022-04-26 14:28:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-12-28 22:59:37 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::updateIddCommand(void *const commandPtr, uint32_t numGrf, int32_t threadArbitrationPolicy) const {
|
2022-04-26 14:28:18 +00:00
|
|
|
}
|
|
|
|
|
|
2022-05-02 13:54:24 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
void ProductHelperHw<IGFX_UNKNOWN>::enableCompression(HardwareInfo *hwInfo) const {
|
2022-05-02 13:54:24 +00:00
|
|
|
}
|
2022-04-26 14:28:18 +00:00
|
|
|
|
2022-05-10 17:38:03 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isCooperativeEngineSupported(const HardwareInfo &hwInfo) const {
|
2022-05-10 17:38:03 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-13 12:04:24 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isTimestampWaitSupportedForEvents() const {
|
2022-05-13 12:04:24 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-02 13:54:24 +00:00
|
|
|
template <>
|
2022-12-21 11:35:37 +00:00
|
|
|
uint64_t ProductHelperHw<IGFX_UNKNOWN>::getHostMemCapabilitiesValue() const {
|
2022-05-02 13:54:24 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
2022-07-14 10:37:55 +00:00
|
|
|
|
2022-07-25 21:33:42 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isEvictionIfNecessaryFlagSupported() const {
|
2022-07-25 21:33:42 +00:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-14 10:37:55 +00:00
|
|
|
template <>
|
2022-08-23 11:48:18 +00:00
|
|
|
const char *L1CachePolicyHelper<IGFX_UNKNOWN>::getCachingPolicyOptions(bool isDebuggerActive) {
|
2022-07-14 10:37:55 +00:00
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2022-08-23 11:48:18 +00:00
|
|
|
uint32_t L1CachePolicyHelper<IGFX_UNKNOWN>::getDefaultL1CachePolicy(bool isDebuggerActive) {
|
2022-07-14 10:37:55 +00:00
|
|
|
return 0u;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-10 11:52:06 +00:00
|
|
|
template <>
|
2022-12-12 16:43:41 +00:00
|
|
|
bool ProductHelperHw<IGFX_UNKNOWN>::isPrefetcherDisablingInDirectSubmissionRequired() const {
|
2022-08-10 11:52:06 +00:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-17 19:21:34 +00:00
|
|
|
template <>
|
|
|
|
|
uint32_t ProductHelperHw<IGFX_UNKNOWN>::getMaxNumSamplers() const {
|
|
|
|
|
return 0u;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-12 12:23:39 +00:00
|
|
|
template <>
|
2022-08-23 11:48:18 +00:00
|
|
|
uint32_t L1CachePolicyHelper<IGFX_UNKNOWN>::getL1CachePolicy(bool isDebuggerActive) {
|
|
|
|
|
return L1CachePolicyHelper<IGFX_UNKNOWN>::getDefaultL1CachePolicy(isDebuggerActive);
|
2022-08-12 12:23:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
uint32_t L1CachePolicyHelper<IGFX_UNKNOWN>::getUncachedL1CachePolicy() {
|
|
|
|
|
return 1u;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-23 04:02:33 +00:00
|
|
|
struct UnknownProduct {
|
|
|
|
|
struct FrontEndStateSupport {
|
|
|
|
|
static constexpr bool scratchSize = false;
|
|
|
|
|
static constexpr bool privateScratchSize = false;
|
2022-08-29 20:06:04 +00:00
|
|
|
static constexpr bool computeDispatchAllWalker = false;
|
|
|
|
|
|
|
|
|
|
static constexpr bool disableEuFusion = false;
|
|
|
|
|
static constexpr bool disableOverdispatch = false;
|
|
|
|
|
static constexpr bool singleSliceDispatchCcsMode = false;
|
2022-08-23 04:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct StateComputeModeStateSupport {
|
|
|
|
|
static constexpr bool threadArbitrationPolicy = false;
|
|
|
|
|
static constexpr bool coherencyRequired = false;
|
|
|
|
|
static constexpr bool largeGrfMode = false;
|
|
|
|
|
static constexpr bool zPassAsyncComputeThreadLimit = false;
|
|
|
|
|
static constexpr bool pixelAsyncComputeThreadLimit = false;
|
|
|
|
|
static constexpr bool devicePreemptionMode = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct StateBaseAddressStateSupport {
|
|
|
|
|
static constexpr bool globalAtomics = false;
|
2022-11-22 17:17:04 +00:00
|
|
|
static constexpr bool bindingTablePoolBaseAddress = false;
|
2022-08-23 04:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct PipelineSelectStateSupport {
|
2022-09-12 19:11:56 +00:00
|
|
|
static constexpr bool mediaSamplerDopClockGate = false;
|
|
|
|
|
static constexpr bool systolicMode = false;
|
2022-08-23 04:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct PreemptionDebugSupport {
|
|
|
|
|
static constexpr bool preemptionMode = false;
|
|
|
|
|
static constexpr bool stateSip = false;
|
|
|
|
|
static constexpr bool csrSurface = false;
|
|
|
|
|
};
|
2023-02-01 03:12:09 +00:00
|
|
|
|
|
|
|
|
static const uint32_t threadsPerEu = 8;
|
2022-08-23 04:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
struct HwMapper<IGFX_UNKNOWN> {
|
|
|
|
|
enum { gfxFamily = IGFX_UNKNOWN_CORE };
|
|
|
|
|
|
|
|
|
|
static const char *abbreviation;
|
|
|
|
|
using GfxProduct = UnknownProduct;
|
|
|
|
|
};
|
|
|
|
|
|
2022-05-02 13:54:24 +00:00
|
|
|
} // namespace NEO
|
|
|
|
|
|
2023-03-10 12:28:11 +00:00
|
|
|
#include "shared/source/os_interface/product_helper.inl"
|
2022-05-02 13:54:24 +00:00
|
|
|
|
2022-12-12 16:43:41 +00:00
|
|
|
template class NEO::ProductHelperHw<IGFX_UNKNOWN>;
|
2022-07-14 10:37:55 +00:00
|
|
|
template struct NEO::L1CachePolicyHelper<IGFX_UNKNOWN>;
|