mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: change default wddm low priority context value
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2cde4a3d9d
commit
f910f94ef9
@@ -963,7 +963,7 @@ bool Wddm::setLowPriorityContextParam(D3DKMT_HANDLE contextHandle) {
|
||||
D3DKMT_SETCONTEXTSCHEDULINGPRIORITY contextPriority = {};
|
||||
|
||||
contextPriority.hContext = contextHandle;
|
||||
contextPriority.Priority = 1;
|
||||
contextPriority.Priority = -7;
|
||||
|
||||
if (debugManager.flags.ForceWddmLowPriorityContextValue.get() != -1) {
|
||||
contextPriority.Priority = static_cast<INT>(debugManager.flags.ForceWddmLowPriorityContextValue.get());
|
||||
|
||||
@@ -724,7 +724,7 @@ TEST_F(WddmContextSchedulingPriorityTests, givenLowPriorityContextWhenInitializi
|
||||
auto createContextParams = this->getSetContextSchedulingPriorityDataCallFcn();
|
||||
|
||||
EXPECT_EQ(osContext->getWddmContextHandle(), createContextParams->hContext);
|
||||
EXPECT_EQ(1, createContextParams->Priority);
|
||||
EXPECT_EQ(-7, createContextParams->Priority);
|
||||
}
|
||||
|
||||
TEST_F(WddmContextSchedulingPriorityTests, givenLowPriorityContextWhenFailingDuringSetSchedulingPriorityThenThrow) {
|
||||
|
||||
Reference in New Issue
Block a user