mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
Fix setting perf factor for media
Related-To: LOCI-3554 Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0f84df6f10
commit
eacf42455d
@@ -114,13 +114,13 @@ ze_result_t LinuxPerformanceImp::osPerformanceSetConfig(double pFactor) {
|
||||
break;
|
||||
case ZES_ENGINE_TYPE_FLAG_MEDIA:
|
||||
if (productFamily == IGFX_PVC) {
|
||||
if (pFactor >= halfOfMaxPerformanceFactor) {
|
||||
if (pFactor > halfOfMaxPerformanceFactor) {
|
||||
multiplier = 1;
|
||||
} else {
|
||||
multiplier = 0.5;
|
||||
}
|
||||
} else {
|
||||
if (pFactor >= halfOfMaxPerformanceFactor) {
|
||||
if (pFactor > halfOfMaxPerformanceFactor) {
|
||||
multiplier = 1;
|
||||
} else if (pFactor > minPerformanceFactor) {
|
||||
multiplier = 0.5;
|
||||
|
||||
Reference in New Issue
Block a user