mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Revert "fix: Check if provided CCS number is correct"
This reverts commit 67963bed4b.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
135f215574
commit
4437360448
@@ -246,19 +246,12 @@ BuiltIns *RootDeviceEnvironment::getBuiltIns() {
|
||||
return this->builtins.get();
|
||||
}
|
||||
|
||||
bool RootDeviceEnvironment::setNumberOfCcs(uint32_t numberOfCcs) {
|
||||
if (hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled < numberOfCcs || numberOfCcs == 0) {
|
||||
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr, "Error: Invalid number of CCS - %u (max: %u)\n", numberOfCcs, hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled);
|
||||
return false;
|
||||
}
|
||||
|
||||
hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled = numberOfCcs;
|
||||
void RootDeviceEnvironment::setNumberOfCcs(uint32_t numberOfCcs) {
|
||||
hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled = std::min(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled, numberOfCcs);
|
||||
limitedNumberOfCcs = true;
|
||||
if (aubCenter) {
|
||||
aubCenter->getAubManager()->setCCSMode(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t RootDeviceEnvironment::getNumberOfCcs() const {
|
||||
|
||||
Reference in New Issue
Block a user