mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
refactor: remove not needed check for exec softpin
Related-To: NEO-10496 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9aa81bae75
commit
d94be09020
@@ -535,14 +535,6 @@ TEST_F(DrmTests, GivenKnownDeviceWhenCreatingDrmThenHwInfoIsProperlySet) {
|
||||
EXPECT_EQ(deviceId, mockRootDeviceEnvironment->getHardwareInfo()->platform.usDeviceID);
|
||||
}
|
||||
|
||||
TEST_F(DrmTests, GivenNoSoftPinWhenCreatingDrmThenNullIsReturned) {
|
||||
VariableBackup<decltype(haveSoftPin)> backupHaveSoftPin(&haveSoftPin);
|
||||
haveSoftPin = 0;
|
||||
|
||||
auto drm = DrmWrap::createDrm(*mockRootDeviceEnvironment);
|
||||
EXPECT_EQ(drm, nullptr);
|
||||
}
|
||||
|
||||
TEST_F(DrmTests, WhenCantFindDeviceIdThenDrmIsNotCreated) {
|
||||
VariableBackup<decltype(failOnDeviceId)> backupFailOnDeviceId(&failOnDeviceId);
|
||||
failOnDeviceId = -1;
|
||||
@@ -575,14 +567,6 @@ TEST_F(DrmTests, WhenCantQueryRevisionIdThenDrmIsNotCreated) {
|
||||
EXPECT_EQ(drm, nullptr);
|
||||
}
|
||||
|
||||
TEST_F(DrmTests, WhenCantQuerySoftPinSupportThenDrmIsNotCreated) {
|
||||
VariableBackup<decltype(failOnSoftPin)> backupFailOnSoftPin(&failOnSoftPin);
|
||||
failOnSoftPin = -1;
|
||||
|
||||
auto drm = DrmWrap::createDrm(*mockRootDeviceEnvironment);
|
||||
EXPECT_EQ(drm, nullptr);
|
||||
}
|
||||
|
||||
TEST_F(DrmTests, GivenFailOnParamBoostWhenCreatingDrmThenDrmIsCreated) {
|
||||
VariableBackup<decltype(failOnParamBoost)> backupFailOnParamBoost(&failOnParamBoost);
|
||||
failOnParamBoost = -1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -25,7 +25,6 @@ int fakeFd = 1023;
|
||||
int haveDri = 0; // index of dri to serve, -1 - none
|
||||
int deviceId = NEO::deviceDescriptorTable[0].deviceId; // default supported DeviceID
|
||||
int revisionId = 17;
|
||||
int haveSoftPin = 1;
|
||||
int havePreemption = I915_SCHEDULER_CAP_ENABLED |
|
||||
I915_SCHEDULER_CAP_PRIORITY |
|
||||
I915_SCHEDULER_CAP_PREEMPTION;
|
||||
@@ -34,7 +33,6 @@ int failOnDeviceId = 0;
|
||||
int failOnEuTotal = 0;
|
||||
int failOnSubsliceTotal = 0;
|
||||
int failOnRevisionId = 0;
|
||||
int failOnSoftPin = 0;
|
||||
int failOnParamBoost = 0;
|
||||
int failOnSetParamSseu = 0;
|
||||
int failOnGetParamSseu = 0;
|
||||
@@ -156,10 +154,6 @@ int drmGetParam(NEO::GetParam *param) {
|
||||
*param->value = revisionId;
|
||||
ret = failOnRevisionId;
|
||||
break;
|
||||
case I915_PARAM_HAS_EXEC_SOFTPIN:
|
||||
*param->value = haveSoftPin;
|
||||
ret = failOnSoftPin;
|
||||
break;
|
||||
#if defined(I915_PARAM_HAS_SCHEDULER)
|
||||
case I915_PARAM_HAS_SCHEDULER:
|
||||
*param->value = havePreemption;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -26,13 +26,11 @@ extern int fakeFd;
|
||||
extern int haveDri; // index of dri to serve, -1 - none
|
||||
extern int deviceId; // known DeviceID
|
||||
extern int revisionId;
|
||||
extern int haveSoftPin;
|
||||
extern int vmId;
|
||||
extern int failOnDeviceId;
|
||||
extern int failOnEuTotal;
|
||||
extern int failOnSubsliceTotal;
|
||||
extern int failOnRevisionId;
|
||||
extern int failOnSoftPin;
|
||||
extern int failOnParamBoost;
|
||||
extern int failOnContextCreate;
|
||||
extern int failOnVirtualMemoryCreate;
|
||||
|
||||
Reference in New Issue
Block a user