| 1 |
/* |
| 2 |
* Copyright (C) 2018-2024 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
#include "shared/source/os_interface/windows/sharedata_wrapper.h" |
| 10 |
#include "shared/source/os_interface/windows/windows_wrapper.h" |
| 11 |
|
| 12 |
#include "sku_info.h" |
| 13 |
|
| 14 |
namespace NEO { |
| 15 |
class SkuInfoReceiver { |
| 16 |
public: |
| 17 |
static void receiveFtrTableFromAdapterInfo(FeatureTable *ftrTable, ADAPTER_INFO_KMD *adapterInfo); |
| 18 |
static void receiveWaTableFromAdapterInfo(WorkaroundTable *workaroundTable, ADAPTER_INFO_KMD *adapterInfo); |
| 19 |
|
| 20 |
protected: |
| 21 |
static void receiveFtrTableFromAdapterInfoBase(FeatureTable *ftrTable, ADAPTER_INFO_KMD *adapterInfo) { |
| 22 |
ftrTable->flags.ftrWddmHwQueues = adapterInfo->SkuTable.FtrHwScheduling; |
| 23 |
|
| 24 |
#define RECEIVE_FTR(VAL_NAME) ftrTable->flags.ftr##VAL_NAME = adapterInfo->SkuTable.Ftr##VAL_NAME |
| 25 |
RECEIVE_FTR(GpGpuMidBatchPreempt); |
| 26 |
RECEIVE_FTR(GpGpuThreadGroupLevelPreempt); |
| 27 |
RECEIVE_FTR(GpGpuMidThreadLevelPreempt); |
| 28 |
|
| 29 |
RECEIVE_FTR(Wddm2Svm); |
| 30 |
RECEIVE_FTR(PooledEuEnabled); |
| 31 |
|
| 32 |
RECEIVE_FTR(PPGTT); |
| 33 |
RECEIVE_FTR(SVM); |
| 34 |
RECEIVE_FTR(EDram); |
| 35 |
RECEIVE_FTR(L3IACoherency); |
| 36 |
RECEIVE_FTR(IA32eGfxPTEs); |
| 37 |
|
| 38 |
RECEIVE_FTR(TileY); |
| 39 |
RECEIVE_FTR(DisplayYTiling); |
| 40 |
RECEIVE_FTR(TranslationTable); |
| 41 |
RECEIVE_FTR(UserModeTranslationTable); |
| 42 |
|
| 43 |
RECEIVE_FTR(Fbc); |
| 44 |
|
| 45 |
RECEIVE_FTR(ULT); |
| 46 |
RECEIVE_FTR(LCIA); |
| 47 |
RECEIVE_FTR(TileMappedResource); |
| 48 |
RECEIVE_FTR(AstcHdr2D); |
| 49 |
RECEIVE_FTR(AstcLdr2D); |
| 50 |
|
| 51 |
RECEIVE_FTR(StandardMipTailFormat); |
| 52 |
RECEIVE_FTR(FrameBufferLLC); |
| 53 |
RECEIVE_FTR(LLCBypass); |
| 54 |
RECEIVE_FTR(DisplayEngineS3d); |
| 55 |
RECEIVE_FTR(Wddm2GpuMmu); |
| 56 |
RECEIVE_FTR(Wddm2_1_64kbPages); |
| 57 |
|
| 58 |
RECEIVE_FTR(KmdDaf); |
| 59 |
|
| 60 |
RECEIVE_FTR(E2ECompression); |
| 61 |
RECEIVE_FTR(LinearCCS); |
| 62 |
RECEIVE_FTR(CCSRing); |
| 63 |
RECEIVE_FTR(CCSNode); |
| 64 |
RECEIVE_FTR(MemTypeMocsDeferPAT); |
| 65 |
RECEIVE_FTR(LocalMemory); |
| 66 |
RECEIVE_FTR(LocalMemoryAllows4KB); |
| 67 |
RECEIVE_FTR(FlatPhysCCS); |
| 68 |
RECEIVE_FTR(MultiTileArch); |
| 69 |
RECEIVE_FTR(Ppgtt64KBWalkOptimization); |
| 70 |
RECEIVE_FTR(Unified3DMediaCompressionFormats); |
| 71 |
RECEIVE_FTR(57bGPUAddressing); |
| 72 |
RECEIVE_FTR(Tile64Optimization); |
| 73 |
RECEIVE_FTR(WalkerMTP); |
| 74 |
RECEIVE_FTR(Xe2Compression); |
| 75 |
RECEIVE_FTR(Xe2PlusTiling); |
| 76 |
RECEIVE_FTR(Pml5Support); |
| 77 |
RECEIVE_FTR(L3TransientDataFlush); |
| 78 |
|
| 79 |
#undef RECEIVE_FTR |
| 80 |
} |
| 81 |
|
| 82 |
static void receiveWaTableFromAdapterInfoBase(WorkaroundTable *workaroundTable, ADAPTER_INFO_KMD *adapterInfo) { |
| 83 |
#define RECEIVE_WA(VAL_NAME) workaroundTable->flags.wa##VAL_NAME = adapterInfo->WaTable.Wa##VAL_NAME |
| 84 |
|
| 85 |
RECEIVE_WA(SendMIFLUSHBeforeVFE); |
| 86 |
RECEIVE_WA(DisableLSQCROPERFforOCL); |
| 87 |
RECEIVE_WA(Msaa8xTileYDepthPitchAlignment); |
| 88 |
RECEIVE_WA(LosslessCompressionSurfaceStride); |
| 89 |
RECEIVE_WA(FbcLinearSurfaceStride); |
| 90 |
RECEIVE_WA(4kAlignUVOffsetNV12LinearSurface); |
| 91 |
RECEIVE_WA(EncryptedEdramOnlyPartials); |
| 92 |
RECEIVE_WA(DisableEdramForDisplayRT); |
| 93 |
RECEIVE_WA(CompressedResourceRequiresConstVA21); |
| 94 |
RECEIVE_WA(DisablePerCtxtPreemptionGranularityControl); |
| 95 |
RECEIVE_WA(LLCCachingUnsupported); |
| 96 |
RECEIVE_WA(UseVAlign16OnTileXYBpp816); |
| 97 |
RECEIVE_WA(ModifyVFEStateAfterGPGPUPreemption); |
| 98 |
RECEIVE_WA(CSRUncachable); |
| 99 |
RECEIVE_WA(SamplerCacheFlushBetweenRedescribedSurfaceReads); |
| 100 |
RECEIVE_WA(RestrictPitch128KB); |
| 101 |
RECEIVE_WA(AuxTable16KGranular); |
| 102 |
RECEIVE_WA(Limit128BMediaCompr); |
| 103 |
RECEIVE_WA(UntypedBufferCompression); |
| 104 |
RECEIVE_WA(DisableFusedThreadScheduling); |
| 105 |
RECEIVE_WA(AuxTable64KGranular); |
| 106 |
RECEIVE_WA(_15010089951); |
| 107 |
|
| 108 |
#undef RECEIVE_WA |
| 109 |
} |
| 110 |
}; |
| 111 |
|
| 112 |
} // namespace NEO |