3535namespace OCLRT {
3636
3737const DeviceDescriptor deviceDescriptorTable[] = {
38- #define DEVICE (devId, gt, gtType ) {devId, >::hwInfo, >::setupGtSystemInfo , gtType},
38+ #define DEVICE (devId, gt, gtType ) {devId, >::hwInfo, >::setupHardwareInfo , gtType},
3939#include " devices.m"
4040#undef DEVICE
4141 {0 , nullptr , nullptr , GTTYPE_UNDEFINED}};
@@ -133,7 +133,7 @@ int Drm::openDevice() {
133133}
134134
135135Drm *Drm::create (int32_t deviceOrdinal) {
136- // right now we support only one device
136+ // right now we support only one device
137137 if (deviceOrdinal != 0 )
138138 return nullptr ;
139139
@@ -181,11 +181,12 @@ Drm *Drm::create(int32_t deviceOrdinal) {
181181 }
182182 if (device) {
183183 platformDevices[0 ] = device->pHwInfo ;
184- device->setupGtSystemInfo (const_cast <GT_SYSTEM_INFO *>(platformDevices[0 ]->pSysInfo ));
184+ device->setupHardwareInfo (const_cast <GT_SYSTEM_INFO *>(platformDevices[0 ]->pSysInfo ),
185+ const_cast <FeatureTable *>(platformDevices[0 ]->pSkuTable ), true );
185186 drmObject->setGtType (eGtType);
186187 } else {
187- printDebugString (DebugManager.flags .PrintDebugMessages .get (), stderr, " %s" , " FATAL: Unknown device: deviceId: %04x, revisionId: %04x \n " ,
188- drmObject->deviceId , drmObject->revisionId );
188+ printDebugString (DebugManager.flags .PrintDebugMessages .get (), stderr, " %s" ,
189+ " FATAL: Unknown device: deviceId: %04x, revisionId: %04x \n " , drmObject->deviceId , drmObject->revisionId );
189190 delete drmObject;
190191 return nullptr ;
191192 }
@@ -200,16 +201,17 @@ Drm *Drm::create(int32_t deviceOrdinal) {
200201 }
201202
202203 if (!hasExecSoftPin) {
203- printDebugString (DebugManager.flags .PrintDebugMessages .get (), stderr, " %s" , " FATAL: Device doesn't support Soft-Pin but this is required.\n " );
204+ printDebugString (DebugManager.flags .PrintDebugMessages .get (), stderr, " %s" ,
205+ " FATAL: Device doesn't support Soft-Pin but this is required.\n " );
204206 delete drmObject;
205207 return nullptr ;
206208 }
207209
208210 // Activate the Turbo Boost Frequency feature
209211 ret = drmObject->enableTurboBoost ();
210212 if (ret != 0 ) {
211- // turbo patch not present, we are not on custom Kernel, switch to simplified Mocs selection
212- // do this only for GEN9+
213+ // turbo patch not present, we are not on custom Kernel, switch to simplified Mocs selection
214+ // do this only for GEN9+
213215 if (device->pHwInfo ->pPlatform ->eRenderCoreFamily >= IGFX_GEN9_CORE) {
214216 drmObject->setSimplifiedMocsTableUsage (true );
215217 }
0 commit comments