Linux dll tests: test turbo patch only on supported platforms

use deviceId from first entry in deviceDescriptorTable as default deviceId
correct using simplified mocs table

Change-Id: I3a6e7cd599912380d48937767f201b44ee98e391
This commit is contained in:
Mateusz Jablonski
2018-05-18 09:53:59 +02:00
committed by sys_ocldev
parent c2368739ce
commit 08faa004aa
5 changed files with 63 additions and 12 deletions

View File

@@ -210,7 +210,7 @@ Drm *Drm::create(int32_t deviceOrdinal) {
if (ret != 0) {
//turbo patch not present, we are not on custom Kernel, switch to simplified Mocs selection
//do this only for GEN9+
if (eGtType >= GTTYPE_GTA) {
if (device->pHwInfo->pPlatform->eRenderCoreFamily >= IGFX_GEN9_CORE) {
Gmm::useSimplifiedMocsTable = true;
}
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stderr, "%s", "WARNING: Failed to request OCL Turbo Boost\n");