mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
fix: don't force priorityLevel if not set
this will be set in setContextProperties Resolves: HSD-13013981033 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
aadab65978
commit
58bab26fc1
@@ -1336,14 +1336,15 @@ EngineControl *SecondaryContexts::getEngine(EngineUsage usage, std::optional<int
|
||||
} else {
|
||||
DEBUG_BREAK_IF(true);
|
||||
}
|
||||
|
||||
if (priorityLevel.has_value()) {
|
||||
engines[secondaryEngineIndex].osContext->overridePriority(priorityLevel.value());
|
||||
} else {
|
||||
int32_t lowestPriorityLevel = engines[secondaryEngineIndex].commandStreamReceiver->getGfxCoreHelper().getLowestQueuePriorityLevel();
|
||||
engines[secondaryEngineIndex].osContext->overridePriority(lowestPriorityLevel);
|
||||
}
|
||||
PRINT_DEBUG_STRING(debugManager.flags.PrintSecondaryContextEngineInfo.get(), stdout, "SecondaryContexts::getEngine-> engineUsage: %s index: %d priorityLevel: %d \n", EngineHelpers::engineUsageToString(usage).c_str(), secondaryEngineIndex, engines[secondaryEngineIndex].osContext->getPriorityLevel());
|
||||
|
||||
if (debugManager.flags.PrintSecondaryContextEngineInfo.get()) {
|
||||
std::stringstream contextEngineInfo;
|
||||
contextEngineInfo << "SecondaryContexts::getEngine-> engineUsage: " << EngineHelpers::engineUsageToString(usage).c_str() << " index: " << secondaryEngineIndex << " priorityLevel: " << (engines[secondaryEngineIndex].osContext->hasPriorityLevel() ? std::to_string(engines[secondaryEngineIndex].osContext->getPriorityLevel()) : "std::nullopt") << " \n";
|
||||
PRINT_DEBUG_STRING(debugManager.flags.PrintSecondaryContextEngineInfo.get(), stdout, "%s", contextEngineInfo.str().c_str());
|
||||
}
|
||||
return &engines[secondaryEngineIndex];
|
||||
}
|
||||
void Device::stopDirectSubmissionForCopyEngine() {
|
||||
|
||||
Reference in New Issue
Block a user