2018-01-09 14:08:34 +01:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-01-09 14:08:34 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-09 14:08:34 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2019-08-29 12:15:33 +02:00
|
|
|
#include "core/os_interface/windows/windows_wrapper.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
|
|
|
#include "sku_info.h"
|
2018-01-09 14:08:34 +01:00
|
|
|
#include "umKmInc/sharedata.h"
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-01-09 14:08:34 +01:00
|
|
|
class SkuInfoReceiver {
|
|
|
|
public:
|
|
|
|
static void receiveFtrTableFromAdapterInfo(FeatureTable *ftrTable, _ADAPTER_INFO *adapterInfo);
|
2019-05-08 16:00:24 +02:00
|
|
|
static void receiveWaTableFromAdapterInfo(WorkaroundTable *workaroundTable, _ADAPTER_INFO *adapterInfo);
|
2018-01-09 14:08:34 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void receiveFtrTableFromAdapterInfoBase(FeatureTable *ftrTable, _ADAPTER_INFO *adapterInfo) {
|
|
|
|
#define RECEIVE_FTR(VAL_NAME) ftrTable->ftr##VAL_NAME = adapterInfo->SkuTable.Ftr##VAL_NAME
|
|
|
|
RECEIVE_FTR(Desktop);
|
|
|
|
RECEIVE_FTR(ChannelSwizzlingXOREnabled);
|
|
|
|
|
|
|
|
RECEIVE_FTR(GtBigDie);
|
|
|
|
RECEIVE_FTR(GtMediumDie);
|
|
|
|
RECEIVE_FTR(GtSmallDie);
|
|
|
|
|
|
|
|
RECEIVE_FTR(GT1);
|
|
|
|
RECEIVE_FTR(GT1_5);
|
|
|
|
RECEIVE_FTR(GT2);
|
|
|
|
RECEIVE_FTR(GT2_5);
|
|
|
|
RECEIVE_FTR(GT3);
|
|
|
|
RECEIVE_FTR(GT4);
|
|
|
|
|
|
|
|
RECEIVE_FTR(IVBM0M1Platform);
|
|
|
|
RECEIVE_FTR(SGTPVSKUStrapPresent);
|
|
|
|
RECEIVE_FTR(GTA);
|
|
|
|
RECEIVE_FTR(GTC);
|
|
|
|
RECEIVE_FTR(GTX);
|
|
|
|
RECEIVE_FTR(5Slice);
|
|
|
|
|
|
|
|
RECEIVE_FTR(GpGpuMidBatchPreempt);
|
|
|
|
RECEIVE_FTR(GpGpuThreadGroupLevelPreempt);
|
|
|
|
RECEIVE_FTR(GpGpuMidThreadLevelPreempt);
|
|
|
|
|
|
|
|
RECEIVE_FTR(IoMmuPageFaulting);
|
|
|
|
RECEIVE_FTR(Wddm2Svm);
|
|
|
|
RECEIVE_FTR(PooledEuEnabled);
|
|
|
|
|
|
|
|
RECEIVE_FTR(ResourceStreamer);
|
|
|
|
|
|
|
|
RECEIVE_FTR(PPGTT);
|
|
|
|
RECEIVE_FTR(SVM);
|
|
|
|
RECEIVE_FTR(EDram);
|
|
|
|
RECEIVE_FTR(L3IACoherency);
|
|
|
|
RECEIVE_FTR(IA32eGfxPTEs);
|
|
|
|
|
|
|
|
RECEIVE_FTR(3dMidBatchPreempt);
|
|
|
|
RECEIVE_FTR(3dObjectLevelPreempt);
|
|
|
|
RECEIVE_FTR(PerCtxtPreemptionGranularityControl);
|
|
|
|
|
2018-09-20 10:45:03 -07:00
|
|
|
RECEIVE_FTR(TileY);
|
2018-01-09 14:08:34 +01:00
|
|
|
RECEIVE_FTR(DisplayYTiling);
|
|
|
|
RECEIVE_FTR(TranslationTable);
|
|
|
|
RECEIVE_FTR(UserModeTranslationTable);
|
|
|
|
|
|
|
|
RECEIVE_FTR(EnableGuC);
|
|
|
|
|
|
|
|
RECEIVE_FTR(Fbc);
|
|
|
|
RECEIVE_FTR(Fbc2AddressTranslation);
|
|
|
|
RECEIVE_FTR(FbcBlitterTracking);
|
|
|
|
RECEIVE_FTR(FbcCpuTracking);
|
|
|
|
|
|
|
|
RECEIVE_FTR(Vcs2);
|
|
|
|
RECEIVE_FTR(VEBOX);
|
|
|
|
RECEIVE_FTR(SingleVeboxSlice);
|
|
|
|
RECEIVE_FTR(ULT);
|
|
|
|
RECEIVE_FTR(LCIA);
|
|
|
|
RECEIVE_FTR(GttCacheInvalidation);
|
|
|
|
RECEIVE_FTR(TileMappedResource);
|
|
|
|
RECEIVE_FTR(AstcHdr2D);
|
|
|
|
RECEIVE_FTR(AstcLdr2D);
|
|
|
|
|
|
|
|
RECEIVE_FTR(StandardMipTailFormat);
|
|
|
|
RECEIVE_FTR(FrameBufferLLC);
|
|
|
|
RECEIVE_FTR(Crystalwell);
|
|
|
|
RECEIVE_FTR(LLCBypass);
|
|
|
|
RECEIVE_FTR(DisplayEngineS3d);
|
|
|
|
RECEIVE_FTR(VERing);
|
|
|
|
RECEIVE_FTR(Wddm2GpuMmu);
|
2018-04-16 13:38:24 +02:00
|
|
|
RECEIVE_FTR(Wddm2_1_64kbPages);
|
2018-01-31 11:22:13 +01:00
|
|
|
|
|
|
|
RECEIVE_FTR(KmdDaf);
|
2018-07-11 10:32:17 +02:00
|
|
|
RECEIVE_FTR(SimulationMode);
|
2019-09-18 21:19:08 +02:00
|
|
|
|
|
|
|
RECEIVE_FTR(E2ECompression);
|
|
|
|
RECEIVE_FTR(LinearCCS);
|
2019-09-20 07:51:23 +02:00
|
|
|
RECEIVE_FTR(MemTypeMocsDeferPAT);
|
2018-01-09 14:08:34 +01:00
|
|
|
#undef RECEIVE_FTR
|
|
|
|
}
|
|
|
|
|
2019-05-08 16:00:24 +02:00
|
|
|
static void receiveWaTableFromAdapterInfoBase(WorkaroundTable *workaroundTable, _ADAPTER_INFO *adapterInfo) {
|
|
|
|
#define RECEIVE_WA(VAL_NAME) workaroundTable->wa##VAL_NAME = adapterInfo->WaTable.Wa##VAL_NAME
|
2018-01-09 14:08:34 +01:00
|
|
|
RECEIVE_WA(DoNotUseMIReportPerfCount);
|
|
|
|
|
|
|
|
RECEIVE_WA(EnablePreemptionGranularityControlByUMD);
|
|
|
|
RECEIVE_WA(SendMIFLUSHBeforeVFE);
|
|
|
|
RECEIVE_WA(ReportPerfCountUseGlobalContextID);
|
|
|
|
RECEIVE_WA(DisableLSQCROPERFforOCL);
|
|
|
|
RECEIVE_WA(Msaa8xTileYDepthPitchAlignment);
|
|
|
|
RECEIVE_WA(LosslessCompressionSurfaceStride);
|
|
|
|
RECEIVE_WA(FbcLinearSurfaceStride);
|
|
|
|
RECEIVE_WA(4kAlignUVOffsetNV12LinearSurface);
|
|
|
|
RECEIVE_WA(EncryptedEdramOnlyPartials);
|
|
|
|
RECEIVE_WA(DisableEdramForDisplayRT);
|
|
|
|
RECEIVE_WA(ForcePcBbFullCfgRestore);
|
|
|
|
RECEIVE_WA(CompressedResourceRequiresConstVA21);
|
|
|
|
RECEIVE_WA(DisablePerCtxtPreemptionGranularityControl);
|
|
|
|
RECEIVE_WA(LLCCachingUnsupported);
|
|
|
|
RECEIVE_WA(UseVAlign16OnTileXYBpp816);
|
|
|
|
RECEIVE_WA(ModifyVFEStateAfterGPGPUPreemption);
|
|
|
|
RECEIVE_WA(CSRUncachable);
|
2018-01-10 14:05:34 +01:00
|
|
|
RECEIVE_WA(SamplerCacheFlushBetweenRedescribedSurfaceReads);
|
2019-08-02 14:49:13 +02:00
|
|
|
RECEIVE_WA(RestrictPitch128KB);
|
2019-09-18 21:19:08 +02:00
|
|
|
RECEIVE_WA(AuxTable16KGranular);
|
|
|
|
RECEIVE_WA(Limit128BMediaCompr);
|
|
|
|
RECEIVE_WA(UntypedBufferCompression);
|
2018-01-09 14:08:34 +01:00
|
|
|
#undef RECEIVE_WA
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|