Lines Matching refs:k

1148 	unsigned int j, k;  in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()  local
1157 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1158 if (mode_lib->vba.WritebackEnable[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1163 mode_lib->vba.WritebackPixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1164 mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1165 mode_lib->vba.WritebackHRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1166 mode_lib->vba.WritebackVRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1167 mode_lib->vba.WritebackLumaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1168 mode_lib->vba.WritebackLumaVTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1169 mode_lib->vba.WritebackChromaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1170 mode_lib->vba.WritebackChromaVTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1171 mode_lib->vba.WritebackDestinationWidth[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1172 mode_lib->vba.HTotal[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1177 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1178 if (mode_lib->vba.HRatio[k] > 1) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1179 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1182 * mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1184 mode_lib->vba.htaps[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1188 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1194 mode_lib->vba.PixelClock[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1196 mode_lib->vba.vtaps[k] / 6.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1199 mode_lib->vba.HRatio[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1201 mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1202 * mode_lib->vba.VRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1203 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1206 if ((mode_lib->vba.htaps[k] > 6 || mode_lib->vba.vtaps[k] > 6) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1208 < 2 * mode_lib->vba.PixelClock[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1209 mode_lib->vba.DPPCLKUsingSingleDPPLuma = 2 * mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1212 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1213 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1214 mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = 0.0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1215 mode_lib->vba.DPPCLKUsingSingleDPP[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1218 if (mode_lib->vba.HRatio[k] > 1) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1219 mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1223 * mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1226 mode_lib->vba.HTAPsChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1230 mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1235 mode_lib->vba.PixelClock[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1237 mode_lib->vba.VTAPsChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1241 mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1244 mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1245 * mode_lib->vba.VRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1247 / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1250 if ((mode_lib->vba.HTAPsChroma[k] > 6 || mode_lib->vba.VTAPsChroma[k] > 6) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1252 < 2 * mode_lib->vba.PixelClock[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1254 * mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1257 mode_lib->vba.DPPCLKUsingSingleDPP[k] = dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1263 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1264 if (mode_lib->vba.BlendingAndTiming[k] != k) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1266 if (mode_lib->vba.ODMCombineEnabled[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1270 mode_lib->vba.PixelClock[k] / 2 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1280 mode_lib->vba.PixelClock[k] / 2 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1284 } else if (!mode_lib->vba.ODMCombineEnabled[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1288 mode_lib->vba.PixelClock[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1298 mode_lib->vba.PixelClock[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1335 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1336 if (mode_lib->vba.DPPPerPlane[k] == 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1337 mode_lib->vba.DPPCLK_calculated[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1339 mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.DPPCLKUsingSingleDPP[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1340 / mode_lib->vba.DPPPerPlane[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1345 mode_lib->vba.DPPCLK_calculated[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1350 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1351 mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.GlobalDPPCLK / 255 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1353 mode_lib->vba.DPPCLK_calculated[k] * 255 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1356 DTRACE(" dppclk_mhz[%i] (calculated) = %f", k, mode_lib->vba.DPPCLK_calculated[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1361 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1362 if (mode_lib->vba.DCCEnable[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1391 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1394 if (mode_lib->vba.SourceScan[k] == dm_horz) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1395 mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportWidth[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1397 mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportHeight[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1399 if (mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1402 if (mode_lib->vba.BlendingAndTiming[k] == j in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1403 && mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1407 mode_lib->vba.SwathWidthY[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1408 (double) mode_lib->vba.SwathWidthSingleDPPY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1410 mode_lib->vba.HActive[k] / 2.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1411 * mode_lib->vba.HRatio[k])); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1413 if (mode_lib->vba.DPPPerPlane[k] == 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1414 mode_lib->vba.SwathWidthY[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1416 mode_lib->vba.SwathWidthY[k] = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1417 / mode_lib->vba.DPPPerPlane[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1422 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1423 if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1424 mode_lib->vba.BytePerPixelDETY[k] = 8; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1425 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1426 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1427 mode_lib->vba.BytePerPixelDETY[k] = 4; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1428 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1429 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1430 mode_lib->vba.BytePerPixelDETY[k] = 2; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1431 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1432 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1433 mode_lib->vba.BytePerPixelDETY[k] = 1; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1434 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1435 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1436 mode_lib->vba.BytePerPixelDETY[k] = 1; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1437 mode_lib->vba.BytePerPixelDETC[k] = 2; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1439 mode_lib->vba.BytePerPixelDETY[k] = 4.0 / 3.0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1440 mode_lib->vba.BytePerPixelDETC[k] = 8.0 / 3.0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1445 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1446 mode_lib->vba.ReadBandwidthPlaneLuma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1447 * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1448 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1449 * mode_lib->vba.VRatio[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1450 mode_lib->vba.ReadBandwidthPlaneChroma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1451 / 2 * dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1452 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1453 * mode_lib->vba.VRatio[k] / 2; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1456 k, in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1457 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1458 + mode_lib->vba.ReadBandwidthPlaneChroma[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1459 mode_lib->vba.TotalDataReadBandwidth += mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1460 + mode_lib->vba.ReadBandwidthPlaneChroma[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1465 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1467 + mode_lib->vba.DPPPerPlane[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1468 if (mode_lib->vba.DCCEnable[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1470 + mode_lib->vba.DPPPerPlane[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1480 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1481 if (mode_lib->vba.VRatio[k] <= 1.0) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1482 mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1483 (double) mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1484 * mode_lib->vba.DPPPerPlane[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1485 / mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1486 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1488 mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1489 (double) mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1490 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1491 / mode_lib->vba.DPPCLK[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1493 if (mode_lib->vba.BytePerPixelDETC[k] == 0) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1494 mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = 0.0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1495 else if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1496 mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1497 mode_lib->vba.SwathWidthY[k] / 2.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1498 * mode_lib->vba.DPPPerPlane[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1499 / (mode_lib->vba.HRatio[k] / 2.0) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1500 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1502 mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1503 mode_lib->vba.SwathWidthY[k] / 2.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1504 / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1505 / mode_lib->vba.DPPCLK[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1528 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1529 if (mode_lib->vba.WritebackEnable[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1530 …alActiveWriteback = mode_lib->vba.TotalActiveWriteback + mode_lib->vba.ActiveWritebacksPerPlane[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1566 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1567 mode_lib->vba.LinesInDETY[k] = mode_lib->vba.DETBufferSizeY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1568 / mode_lib->vba.BytePerPixelDETY[k] / mode_lib->vba.SwathWidthY[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1569 mode_lib->vba.LinesInDETYRoundedDownToSwath[k] = dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1570 mode_lib->vba.LinesInDETY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1571 mode_lib->vba.SwathHeightY[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1572 mode_lib->vba.FullDETBufferingTimeY[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1573 mode_lib->vba.LinesInDETYRoundedDownToSwath[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1574 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1575 / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1576 / mode_lib->vba.VRatio[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1577 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1578 mode_lib->vba.LinesInDETC[k] = mode_lib->vba.DETBufferSizeC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1579 / mode_lib->vba.BytePerPixelDETC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1580 / (mode_lib->vba.SwathWidthY[k] / 2); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1581 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1582 mode_lib->vba.LinesInDETC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1583 mode_lib->vba.SwathHeightC[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1584 mode_lib->vba.FullDETBufferingTimeC[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1585 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1586 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1587 / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1588 / (mode_lib->vba.VRatio[k] / 2); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1590 mode_lib->vba.LinesInDETC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1591 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1592 mode_lib->vba.FullDETBufferingTimeC[k] = 999999; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1597 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1598 if (mode_lib->vba.FullDETBufferingTimeY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1601 mode_lib->vba.FullDETBufferingTimeY[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1603 (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1604 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1606 if (mode_lib->vba.FullDETBufferingTimeC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1609 mode_lib->vba.FullDETBufferingTimeC[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1611 (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1612 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1617 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1618 if (mode_lib->vba.DCCEnable[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1621 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1622 / mode_lib->vba.DCCRate[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1624 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1625 / mode_lib->vba.DCCRate[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1630 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1632 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1635 if (mode_lib->vba.DCCEnable[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1638 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1640 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1646 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1648 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1677 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1679 mode_lib->vba.VBlankTime = (double) (mode_lib->vba.VTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1680 - mode_lib->vba.VActive[k]) * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1681 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1699 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; k++) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1700 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1701 mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1703 1.1 * mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1705 mode_lib->vba.BytePerPixelDETY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1707 / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1708 1.1 * mode_lib->vba.SwathWidthY[k] / 2.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1710 mode_lib->vba.BytePerPixelDETC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1712 / mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1714 mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = 1.1 * mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1715 * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) / 64.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1716 / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1717 mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1718 mode_lib->vba.DCFCLKDeepSleepPerPlane[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1719 mode_lib->vba.PixelClock[k] / 16.0); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1722 mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1726 k, in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1727 mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1744 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1747 mode_lib->vba.LinesInDETY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1749 mode_lib->vba.LinesInDETY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1750 * mode_lib->vba.DPPCLK[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1751 * mode_lib->vba.BytePerPixelDETY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1752 * mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1754 / mode_lib->vba.DPPPerPlane[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1756 mode_lib->vba.SwathHeightY[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1759 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1760 / mode_lib->vba.VRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1762 * mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1763 * mode_lib->vba.BytePerPixelDETY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1765 / mode_lib->vba.DPPPerPlane[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1767 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1770 mode_lib->vba.LinesInDETC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1772 mode_lib->vba.LinesInDETC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1773 * mode_lib->vba.DPPCLK[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1774 * mode_lib->vba.BytePerPixelDETC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1775 * mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1777 / mode_lib->vba.DPPPerPlane[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1779 mode_lib->vba.SwathHeightC[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1782 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1783 / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1784 / (mode_lib->vba.VRatio[k] / 2) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1786 * (mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1788 * mode_lib->vba.BytePerPixelDETC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1790 / mode_lib->vba.DPPPerPlane[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1791 mode_lib->vba.UrgentLatencySupportUs[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1795 mode_lib->vba.UrgentLatencySupportUs[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1801 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1804 mode_lib->vba.UrgentLatencySupportUs[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1812 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1813 if ((mode_lib->vba.BlendingAndTiming[k] != k) || !mode_lib->vba.DSCEnabled[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1814 mode_lib->vba.DSCCLK_calculated[k] = 0.0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1816 if (mode_lib->vba.OutputFormat[k] == dm_420 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1817 || mode_lib->vba.OutputFormat[k] == dm_n422) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1821 if (mode_lib->vba.ODMCombineEnabled[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1822 mode_lib->vba.DSCCLK_calculated[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1823 mode_lib->vba.PixelClockBackEnd[k] / 6 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1829 mode_lib->vba.DSCCLK_calculated[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1830 mode_lib->vba.PixelClockBackEnd[k] / 3 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1840 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1841 double bpp = mode_lib->vba.OutputBpp[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1842 unsigned int slices = mode_lib->vba.NumberOfDSCSlices[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1844 if (mode_lib->vba.DSCEnabled[k] && bpp != 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1845 if (!mode_lib->vba.ODMCombineEnabled[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1846 mode_lib->vba.DSCDelay[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1848 mode_lib->vba.DSCInputBitPerComponent[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1851 (double) mode_lib->vba.HActive[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1852 / mode_lib->vba.NumberOfDSCSlices[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1855 mode_lib->vba.OutputFormat[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1857 mode_lib->vba.OutputFormat[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1859 mode_lib->vba.DSCDelay[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1862 mode_lib->vba.DSCInputBitPerComponent[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1865 (double) mode_lib->vba.HActive[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1866 / mode_lib->vba.NumberOfDSCSlices[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1869 mode_lib->vba.OutputFormat[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1871 mode_lib->vba.OutputFormat[k])); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1873 mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1874 * mode_lib->vba.PixelClock[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1875 / mode_lib->vba.PixelClockBackEnd[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1877 mode_lib->vba.DSCDelay[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1881 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1883 if (j != k && mode_lib->vba.BlendingAndTiming[k] == j in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1885 mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[j]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1888 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1897 mode_lib->vba.SourcePixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1898 mode_lib->vba.SurfaceTiling[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1899 dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1900 dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1901 &mode_lib->vba.BlockHeight256BytesY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1902 &mode_lib->vba.BlockHeight256BytesC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1903 &mode_lib->vba.BlockWidth256BytesY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1904 &mode_lib->vba.BlockWidth256BytesC[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1907 mode_lib->vba.DCCEnable[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1908 mode_lib->vba.BlockHeight256BytesY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1909 mode_lib->vba.BlockWidth256BytesY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1910 mode_lib->vba.SourcePixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1911 mode_lib->vba.SurfaceTiling[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1912 dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1913 mode_lib->vba.SourceScan[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1914 mode_lib->vba.ViewportWidth[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1915 mode_lib->vba.ViewportHeight[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1916 mode_lib->vba.SwathWidthY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1921 mode_lib->vba.PitchY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1922 mode_lib->vba.DCCMetaPitchY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1923 &mode_lib->vba.MacroTileWidthY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1927 &mode_lib->vba.dpte_row_height[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1928 &mode_lib->vba.meta_row_height[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1929 mode_lib->vba.PrefetchSourceLinesY[k] = CalculatePrefetchSourceLines( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1931 mode_lib->vba.VRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1932 mode_lib->vba.vtaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1933 mode_lib->vba.Interlace[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1935 mode_lib->vba.SwathHeightY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1936 mode_lib->vba.ViewportYStartY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1937 &mode_lib->vba.VInitPreFillY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1938 &mode_lib->vba.MaxNumSwathY[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1940 if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1941 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1942 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1943 && mode_lib->vba.SourcePixelFormat[k] != dm_444_8)) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1947 mode_lib->vba.DCCEnable[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1948 mode_lib->vba.BlockHeight256BytesC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1949 mode_lib->vba.BlockWidth256BytesC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1950 mode_lib->vba.SourcePixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1951 mode_lib->vba.SurfaceTiling[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1953 mode_lib->vba.BytePerPixelDETC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1955 mode_lib->vba.SourceScan[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1956 mode_lib->vba.ViewportWidth[k] / 2, in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1957 mode_lib->vba.ViewportHeight[k] / 2, in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1958 mode_lib->vba.SwathWidthY[k] / 2, in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1963 mode_lib->vba.PitchC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1965 &mode_lib->vba.MacroTileWidthC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1969 &mode_lib->vba.dpte_row_height_chroma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1970 &mode_lib->vba.meta_row_height_chroma[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1971 mode_lib->vba.PrefetchSourceLinesC[k] = CalculatePrefetchSourceLines( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1973 mode_lib->vba.VRatio[k] / 2, in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1974 mode_lib->vba.VTAPsChroma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1975 mode_lib->vba.Interlace[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1977 mode_lib->vba.SwathHeightC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1978 mode_lib->vba.ViewportYStartC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1979 &mode_lib->vba.VInitPreFillC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1980 &mode_lib->vba.MaxNumSwathC[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1985 mode_lib->vba.MaxNumSwathC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1986 mode_lib->vba.PrefetchSourceLinesC[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1989 mode_lib->vba.PixelPTEBytesPerRow[k] = PixelPTEBytesPerRowY + PixelPTEBytesPerRowC; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1990 mode_lib->vba.PDEAndMetaPTEBytesFrame[k] = PDEAndMetaPTEBytesFrameY in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1992 mode_lib->vba.MetaRowByte[k] = MetaRowByteY + MetaRowByteC; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1996 mode_lib->vba.SourcePixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1997 mode_lib->vba.VRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1998 mode_lib->vba.DCCEnable[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1999 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2002 mode_lib->vba.meta_row_height[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2003 mode_lib->vba.meta_row_height_chroma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2006 mode_lib->vba.dpte_row_height[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2007 mode_lib->vba.dpte_row_height_chroma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2008 &mode_lib->vba.meta_row_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2009 &mode_lib->vba.dpte_row_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2010 &mode_lib->vba.qual_row_bw[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2015 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2016 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2017 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2018 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2021 mode_lib->vba.WritebackPixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2022 mode_lib->vba.WritebackHRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2023 mode_lib->vba.WritebackVRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2024 mode_lib->vba.WritebackLumaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2025 mode_lib->vba.WritebackLumaVTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2026 mode_lib->vba.WritebackChromaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2027 mode_lib->vba.WritebackChromaVTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2028 mode_lib->vba.WritebackDestinationWidth[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2031 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2033 if (mode_lib->vba.BlendingAndTiming[j] == k in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2035 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2037 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2054 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2056 if (mode_lib->vba.BlendingAndTiming[k] == j) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2057 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2061 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2062 mode_lib->vba.MaxVStartupLines[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2063 mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2067 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2068 / (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2069 / mode_lib->vba.PixelClock[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2073 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2076 mode_lib->vba.MaxVStartupLines[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2078 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2079 mode_lib->vba.cursor_bw[k] = 0.0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2080 for (j = 0; j < mode_lib->vba.NumberOfCursors[k]; ++j) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2081 mode_lib->vba.cursor_bw[k] += mode_lib->vba.CursorWidth[k][j] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2082 * mode_lib->vba.CursorBPP[k][j] / 8.0 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2083 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2084 * mode_lib->vba.VRatio[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2099 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2100 if (mode_lib->vba.XFCEnabled[k] == true) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2104 mode_lib->vba.VRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2105 mode_lib->vba.SwathWidthY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2107 mode_lib->vba.BytePerPixelDETY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2109 mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2110 / mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2127 …b->vba.ReturnBW, mode_lib->vba.ReadBandwidthPlaneLuma[k], mode_lib->vba.ReadBandwidthPlaneChroma[k in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2128 …mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[ in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2129k], mode_lib->vba.DISPCLK, mode_lib->vba.PixelClock[k], mode_lib->vba.DSCDelay[k], mode_lib->vba.D… in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2131 …mode_lib->vba.SwathWidthY[k] / mode_lib->vba.HRatio[k], mode_lib->vba.OutputFormat[k], mode_lib->v… in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2132k], mode_lib->vba.BytePerPixelDETY[k], mode_lib->vba.BytePerPixelDETC[k], mode_lib->vba.SwathHeigh… in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2133 …ressiveToInterlaceUnitInOPP, &mode_lib->vba.DSTXAfterScaler[k], &mode_lib->vba.DSTYAfterScaler[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2135 mode_lib->vba.ErrorResult[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2138 mode_lib->vba.DPPCLK[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2140 mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2142 mode_lib->vba.DPPPerPlane[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2143 mode_lib->vba.NumberOfCursors[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2144 mode_lib->vba.VTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2145 - mode_lib->vba.VActive[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2146 mode_lib->vba.HTotal[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2150 mode_lib->vba.MaxVStartupLines[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2153 mode_lib->vba.DynamicMetadataEnable[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2154 mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2155 mode_lib->vba.DynamicMetadataTransmittedBytes[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2156 mode_lib->vba.DCCEnable[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2160 mode_lib->vba.PDEAndMetaPTEBytesFrame[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2161 mode_lib->vba.MetaRowByte[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2162 mode_lib->vba.PixelPTEBytesPerRow[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2163 mode_lib->vba.PrefetchSourceLinesY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2164 mode_lib->vba.SwathWidthY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2165 mode_lib->vba.BytePerPixelDETY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2166 mode_lib->vba.VInitPreFillY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2167 mode_lib->vba.MaxNumSwathY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2168 mode_lib->vba.PrefetchSourceLinesC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2169 mode_lib->vba.BytePerPixelDETC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2170 mode_lib->vba.VInitPreFillC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2171 mode_lib->vba.MaxNumSwathC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2172 mode_lib->vba.SwathHeightY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2173 mode_lib->vba.SwathHeightC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2175 mode_lib->vba.XFCEnabled[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2177 mode_lib->vba.Interlace[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2179 mode_lib->vba.DSTXAfterScaler[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2180 mode_lib->vba.DSTYAfterScaler[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2181 &mode_lib->vba.DestinationLinesForPrefetch[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2182 &mode_lib->vba.PrefetchBandwidth[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2183 &mode_lib->vba.DestinationLinesToRequestVMInVBlank[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2184 &mode_lib->vba.DestinationLinesToRequestRowInVBlank[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2185 &mode_lib->vba.VRatioPrefetchY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2186 &mode_lib->vba.VRatioPrefetchC[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2187 &mode_lib->vba.RequiredPrefetchPixDataBWLuma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2188 &mode_lib->vba.Tno_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2189 &mode_lib->vba.VUpdateOffsetPix[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2190 &mode_lib->vba.VUpdateWidthPix[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2191 &mode_lib->vba.VReadyOffsetPix[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2193 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2194 mode_lib->vba.VStartup[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2196 mode_lib->vba.MaxVStartupLines[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2199 mode_lib->vba.VStartup[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2203 mode_lib->vba.VStartup[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2206 mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2210 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2212 if (mode_lib->vba.PDEAndMetaPTEBytesFrame[k] == 0) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2213 mode_lib->vba.prefetch_vm_bw[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2214 else if (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] > 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2215 mode_lib->vba.prefetch_vm_bw[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2216 (double) mode_lib->vba.PDEAndMetaPTEBytesFrame[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2217 / (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2218 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2219 / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2221 mode_lib->vba.prefetch_vm_bw[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2224 if (mode_lib->vba.MetaRowByte[k] + mode_lib->vba.PixelPTEBytesPerRow[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2226 mode_lib->vba.prefetch_row_bw[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2227 else if (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] > 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2228 mode_lib->vba.prefetch_row_bw[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2229 (double) (mode_lib->vba.MetaRowByte[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2230 + mode_lib->vba.PixelPTEBytesPerRow[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2231 / (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2232 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2233 / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2235 mode_lib->vba.prefetch_row_bw[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2240 MaxTotalRDBandwidth + mode_lib->vba.cursor_bw[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2242 mode_lib->vba.prefetch_vm_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2244 mode_lib->vba.prefetch_row_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2246 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2247 + mode_lib->vba.ReadBandwidthPlaneChroma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2248 mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2249 + mode_lib->vba.meta_row_bw[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2250 + mode_lib->vba.dpte_row_bw[k])); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2252 if (mode_lib->vba.DestinationLinesForPrefetch[k] < 2) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2254 if (mode_lib->vba.VRatioPrefetchY[k] > 4 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2255 || mode_lib->vba.VRatioPrefetchC[k] > 4) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2275 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2278 - mode_lib->vba.cursor_bw[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2280 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2281 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2282 + mode_lib->vba.qual_row_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2283 mode_lib->vba.PrefetchBandwidth[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2286 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2287 ImmediateFlipBytes[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2288 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2289 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2290 ImmediateFlipBytes[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2291 mode_lib->vba.PDEAndMetaPTEBytesFrame[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2292 + mode_lib->vba.MetaRowByte[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2293 + mode_lib->vba.PixelPTEBytesPerRow[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2297 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2298 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2299 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2302 + ImmediateFlipBytes[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2305 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2314 mode_lib->vba.SourcePixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2315 ImmediateFlipBytes[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2316 mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2317 / mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2318 mode_lib->vba.VRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2319 mode_lib->vba.Tno_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2320 mode_lib->vba.PDEAndMetaPTEBytesFrame[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2321 mode_lib->vba.MetaRowByte[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2322 mode_lib->vba.PixelPTEBytesPerRow[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2323 mode_lib->vba.DCCEnable[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2324 mode_lib->vba.dpte_row_height[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2325 mode_lib->vba.meta_row_height[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2326 mode_lib->vba.qual_row_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2327 &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2328 &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2329 &final_flip_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2330 &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2332 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2335 + mode_lib->vba.cursor_bw[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2337 mode_lib->vba.prefetch_vm_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2339 mode_lib->vba.prefetch_row_bw[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2340 final_flip_bw[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2342 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2343 + mode_lib->vba.ReadBandwidthPlaneChroma[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2344 mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]))); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2350 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2351 if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2359 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2360 if (mode_lib->vba.ErrorResult[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2374 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2375 if (mode_lib->vba.VRatioPrefetchY[k] <= 1) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2376 mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2377 mode_lib->vba.SwathWidthY[k] * mode_lib->vba.DPPPerPlane[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2378 / mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2379 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2381 mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2382 mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2383 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2384 / mode_lib->vba.DPPCLK[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2386 if (mode_lib->vba.BytePerPixelDETC[k] == 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2387 mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2389 if (mode_lib->vba.VRatioPrefetchC[k] <= 1) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2390 mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2391 mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2392 * mode_lib->vba.DPPPerPlane[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2393 / mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2394 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2396 mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2397 mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2398 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2399 / mode_lib->vba.DPPCLK[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2405 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2407 mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = true; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2408 mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2409 mode_lib->vba.MinTTUVBlank[k] = dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2415 mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2416 mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2417 mode_lib->vba.MinTTUVBlank[k] = dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2421 mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2422 mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = false; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2423 mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.UrgentWatermark; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2425 if (!mode_lib->vba.DynamicMetadataEnable[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2426 mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.TCalc in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2427 + mode_lib->vba.MinTTUVBlank[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2433 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2434 mode_lib->vba.ActiveDPPs = mode_lib->vba.ActiveDPPs + mode_lib->vba.DPPPerPlane[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2437 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2451 / mode_lib->vba.LBBitPerPixel[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2452 / (mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2454 mode_lib->vba.HRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2456 1)) - (mode_lib->vba.vtaps[k] - 1); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2463 / mode_lib->vba.LBBitPerPixel[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2464 / (mode_lib->vba.SwathWidthY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2467 mode_lib->vba.HRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2471 - (mode_lib->vba.VTAPsChroma[k] - 1); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2474 / mode_lib->vba.VRatio[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2475 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2478 / (mode_lib->vba.VRatio[k] / 2) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2479 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2481 if (mode_lib->vba.SwathWidthY[k] > 2 * mode_lib->vba.DPPOutputBufferPixels) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2483 / mode_lib->vba.SwathWidthY[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2484 } else if (mode_lib->vba.SwathWidthY[k] > mode_lib->vba.DPPOutputBufferPixels) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2490 if (mode_lib->vba.SwathWidthY[k] / 2 > 2 * mode_lib->vba.DPPOutputBufferPixels) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2492 / (mode_lib->vba.SwathWidthY[k] / 2); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2493 } else if (mode_lib->vba.SwathWidthY[k] / 2 > mode_lib->vba.DPPOutputBufferPixels) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2499 DPPOPPBufferingY = (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2501 MaxDETBufferingTimeY = mode_lib->vba.FullDETBufferingTimeY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2502 + (mode_lib->vba.LinesInDETY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2503 - mode_lib->vba.LinesInDETYRoundedDownToSwath[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2504 / mode_lib->vba.SwathHeightY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2505 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2506 / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2515 * mode_lib->vba.SwathHeightY[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2516 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2517 / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2520 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2521 double DPPOPPBufferingC = (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2522 / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2526 mode_lib->vba.FullDETBufferingTimeC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2527 + (mode_lib->vba.LinesInDETC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2528 - mode_lib->vba.LinesInDETCRoundedDownToSwath[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2529 / mode_lib->vba.SwathHeightC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2530 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2531 / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2543 * mode_lib->vba.SwathHeightC[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2544 * (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2545 / mode_lib->vba.PixelClock[k]); in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2547 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2551 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2555 if (mode_lib->vba.WritebackEnable[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2558 if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2562 / (mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2563 * mode_lib->vba.WritebackDestinationHeight[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2564 / (mode_lib->vba.WritebackSourceHeight[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2565 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2566 / mode_lib->vba.PixelClock[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2569 } else if (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2577 / (mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2578 * mode_lib->vba.WritebackDestinationHeight[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2579 / (mode_lib->vba.WritebackSourceHeight[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2580 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2581 / mode_lib->vba.PixelClock[k])) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2589 / (mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2590 * mode_lib->vba.WritebackDestinationHeight[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2591 / (mode_lib->vba.WritebackSourceHeight[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2592 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2593 / mode_lib->vba.PixelClock[k])) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2596 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2597 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2607 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2608 if (mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2611 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2612 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2613 PlaneWithMinActiveDRAMClockChangeMargin = k; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2616 if (mode_lib->vba.BlendingAndTiming[k] == j) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2627 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2628 if (!((k == PlaneWithMinActiveDRAMClockChangeMargin) && (mode_lib->vba.BlendingAndTiming[k] == k)) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2629 && !(mode_lib->vba.BlendingAndTiming[k] == PlaneWithMinActiveDRAMClockChangeMargin) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2630 && mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2633 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2641 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2645 mode_lib->vba.MinTTUVBlank[k] += 25; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2660 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2661 if (!mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2671 for (k = 0; k <= mode_lib->vba.soc.num_states; k++) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2673 mode_lib->vba.DRAMClockChangeSupport[k][j] = mode_lib->vba.DRAMClockChangeSupport[0][0]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2676 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2677 if (mode_lib->vba.XFCEnabled[k] == true) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2680 mode_lib->vba.XFCSlaveVUpdateOffset[k] = mode_lib->vba.XFCTSlvVupdateOffset; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2681 mode_lib->vba.XFCSlaveVupdateWidth[k] = mode_lib->vba.XFCTSlvVupdateWidth; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2682 mode_lib->vba.XFCSlaveVReadyOffset[k] = mode_lib->vba.XFCTSlvVreadyOffset; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2690 mode_lib->vba.VRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2691 mode_lib->vba.SwathWidthY[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2692 dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2693 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2706 mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2709 / (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2710 / mode_lib->vba.PixelClock[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2712 mode_lib->vba.XFCTransferDelay[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2715 / (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2716 / mode_lib->vba.PixelClock[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2718 mode_lib->vba.XFCPrechargeDelay[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2723 / (mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2724 / mode_lib->vba.PixelClock[k]), in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2729 (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2730 + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2731 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2732 / mode_lib->vba.PixelClock[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2744 mode_lib->vba.XFCPrefetchMargin[k] = in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2747 + (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2748 + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2749 * mode_lib->vba.HTotal[k] in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2750 / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2752 mode_lib->vba.XFCSlaveVUpdateOffset[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2753 mode_lib->vba.XFCSlaveVupdateWidth[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2754 mode_lib->vba.XFCSlaveVReadyOffset[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2755 mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2756 mode_lib->vba.XFCPrechargeDelay[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2757 mode_lib->vba.XFCTransferDelay[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2758 mode_lib->vba.XFCPrefetchMargin[k] = 0; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2765 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2766 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2767 unsigned int Margin = (mode_lib->vba.MaxVStartupLines[k] - mode_lib->vba.VStartup[k]) in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2768 * mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2778 if (mode_lib->vba.VTotal_Max[k] == mode_lib->vba.VTotal[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2780 mode_lib->vba.VStartup[k] = mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2804 unsigned int j, k; in dml20v2_DisplayPipeConfiguration() local
2806 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DisplayPipeConfiguration()
2809 if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20v2_DisplayPipeConfiguration()
2812 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { in dml20v2_DisplayPipeConfiguration()
2815 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { in dml20v2_DisplayPipeConfiguration()
2818 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { in dml20v2_DisplayPipeConfiguration()
2821 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20v2_DisplayPipeConfiguration()
2829 if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20v2_DisplayPipeConfiguration()
2830 || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20v2_DisplayPipeConfiguration()
2831 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20v2_DisplayPipeConfiguration()
2832 || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { in dml20v2_DisplayPipeConfiguration()
2833 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20v2_DisplayPipeConfiguration()
2835 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20v2_DisplayPipeConfiguration()
2837 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20v2_DisplayPipeConfiguration()
2838 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { in dml20v2_DisplayPipeConfiguration()
2848 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20v2_DisplayPipeConfiguration()
2851 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20v2_DisplayPipeConfiguration()
2864 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_DisplayPipeConfiguration()
2872 if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20v2_DisplayPipeConfiguration()
2873 || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20v2_DisplayPipeConfiguration()
2874 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20v2_DisplayPipeConfiguration()
2875 || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { in dml20v2_DisplayPipeConfiguration()
2876 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml20v2_DisplayPipeConfiguration()
2877 || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20v2_DisplayPipeConfiguration()
2878 && (mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2880 || mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2882 || mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2884 || mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2886 || mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2888 || mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2890 || mode_lib->vba.SurfaceTiling[k] in dml20v2_DisplayPipeConfiguration()
2892 && mode_lib->vba.SourceScan[k] == dm_horz)) { in dml20v2_DisplayPipeConfiguration()
2894 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8 in dml20v2_DisplayPipeConfiguration()
2895 && mode_lib->vba.SourceScan[k] != dm_horz) { in dml20v2_DisplayPipeConfiguration()
2902 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20v2_DisplayPipeConfiguration()
2905 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 in dml20v2_DisplayPipeConfiguration()
2906 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_DisplayPipeConfiguration()
2909 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 in dml20v2_DisplayPipeConfiguration()
2910 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_DisplayPipeConfiguration()
2919 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_DisplayPipeConfiguration()
2920 SwathWidth = mode_lib->vba.ViewportWidth[k]; in dml20v2_DisplayPipeConfiguration()
2922 SwathWidth = mode_lib->vba.ViewportHeight[k]; in dml20v2_DisplayPipeConfiguration()
2925 if (mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) { in dml20v2_DisplayPipeConfiguration()
2929 if (mode_lib->vba.BlendingAndTiming[k] == j in dml20v2_DisplayPipeConfiguration()
2930 && mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) { in dml20v2_DisplayPipeConfiguration()
2938 mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k]); in dml20v2_DisplayPipeConfiguration()
2940 if (mode_lib->vba.DPPPerPlane[k] == 0) in dml20v2_DisplayPipeConfiguration()
2943 SwathWidth = SwathWidth / mode_lib->vba.DPPPerPlane[k]; in dml20v2_DisplayPipeConfiguration()
2951 if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { in dml20v2_DisplayPipeConfiguration()
2962 if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { in dml20v2_DisplayPipeConfiguration()
2972 mode_lib->vba.SwathHeightY[k] = MaximumSwathHeightY; in dml20v2_DisplayPipeConfiguration()
2973 mode_lib->vba.SwathHeightC[k] = MaximumSwathHeightC; in dml20v2_DisplayPipeConfiguration()
2975 mode_lib->vba.SwathHeightY[k] = MinimumSwathHeightY; in dml20v2_DisplayPipeConfiguration()
2976 mode_lib->vba.SwathHeightC[k] = MinimumSwathHeightC; in dml20v2_DisplayPipeConfiguration()
2979 if (mode_lib->vba.SwathHeightC[k] == 0) { in dml20v2_DisplayPipeConfiguration()
2980 mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte[0] * 1024; in dml20v2_DisplayPipeConfiguration()
2981 mode_lib->vba.DETBufferSizeC[k] = 0; in dml20v2_DisplayPipeConfiguration()
2982 } else if (mode_lib->vba.SwathHeightY[k] <= mode_lib->vba.SwathHeightC[k]) { in dml20v2_DisplayPipeConfiguration()
2983 mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20v2_DisplayPipeConfiguration()
2985 mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20v2_DisplayPipeConfiguration()
2988 mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20v2_DisplayPipeConfiguration()
2990 mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20v2_DisplayPipeConfiguration()
3398 unsigned int j, k, m; in dml20v2_ModeSupportAndSystemConfigurationFull() local
3405 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3406 if (mode_lib->vba.ScalerEnabled[k] == false in dml20v2_ModeSupportAndSystemConfigurationFull()
3407 && ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20v2_ModeSupportAndSystemConfigurationFull()
3408 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
3409 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3410 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3411 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) in dml20v2_ModeSupportAndSystemConfigurationFull()
3412 || mode_lib->vba.HRatio[k] != 1.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3413 || mode_lib->vba.htaps[k] != 1.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3414 || mode_lib->vba.VRatio[k] != 1.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3415 || mode_lib->vba.vtaps[k] != 1.0)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3417 } else if (mode_lib->vba.vtaps[k] < 1.0 || mode_lib->vba.vtaps[k] > 8.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3418 || mode_lib->vba.htaps[k] < 1.0 || mode_lib->vba.htaps[k] > 8.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3419 || (mode_lib->vba.htaps[k] > 1.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3420 && (mode_lib->vba.htaps[k] % 2) == 1) in dml20v2_ModeSupportAndSystemConfigurationFull()
3421 || mode_lib->vba.HRatio[k] > mode_lib->vba.MaxHSCLRatio in dml20v2_ModeSupportAndSystemConfigurationFull()
3422 || mode_lib->vba.VRatio[k] > mode_lib->vba.MaxVSCLRatio in dml20v2_ModeSupportAndSystemConfigurationFull()
3423 || mode_lib->vba.HRatio[k] > mode_lib->vba.htaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3424 || mode_lib->vba.VRatio[k] > mode_lib->vba.vtaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3425 || (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20v2_ModeSupportAndSystemConfigurationFull()
3426 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
3427 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3428 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3429 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
3430 && (mode_lib->vba.HRatio[k] / 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3431 > mode_lib->vba.HTAPsChroma[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3432 || mode_lib->vba.VRatio[k] / 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3433 > mode_lib->vba.VTAPsChroma[k]))) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3440 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3441 if ((mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml20v2_ModeSupportAndSystemConfigurationFull()
3442 && mode_lib->vba.SourceScan[k] != dm_horz) in dml20v2_ModeSupportAndSystemConfigurationFull()
3443 || ((mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d in dml20v2_ModeSupportAndSystemConfigurationFull()
3444 || mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d_x in dml20v2_ModeSupportAndSystemConfigurationFull()
3445 || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d in dml20v2_ModeSupportAndSystemConfigurationFull()
3446 || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_t in dml20v2_ModeSupportAndSystemConfigurationFull()
3447 || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_x in dml20v2_ModeSupportAndSystemConfigurationFull()
3448 || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d in dml20v2_ModeSupportAndSystemConfigurationFull()
3449 || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d_x) in dml20v2_ModeSupportAndSystemConfigurationFull()
3450 && mode_lib->vba.SourcePixelFormat[k] != dm_444_64) in dml20v2_ModeSupportAndSystemConfigurationFull()
3451 || (mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_r_x in dml20v2_ModeSupportAndSystemConfigurationFull()
3452 && (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
3453 || mode_lib->vba.SourcePixelFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3455 || mode_lib->vba.SourcePixelFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3457 || (((mode_lib->vba.SurfaceTiling[k] == dm_sw_gfx7_2d_thin_gl in dml20v2_ModeSupportAndSystemConfigurationFull()
3458 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3460 && !((mode_lib->vba.SourcePixelFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3462 || mode_lib->vba.SourcePixelFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3464 && mode_lib->vba.SourceScan[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3468 && mode_lib->vba.DCCEnable[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3470 || (mode_lib->vba.DCCEnable[k] == true in dml20v2_ModeSupportAndSystemConfigurationFull()
3471 && (mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3473 || mode_lib->vba.SourcePixelFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3475 || mode_lib->vba.SourcePixelFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3482 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3483 if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3484 locals->BytePerPixelInDETY[k] = 8.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3485 locals->BytePerPixelInDETC[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3486 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3487 locals->BytePerPixelInDETY[k] = 4.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3488 locals->BytePerPixelInDETC[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3489 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3490 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3491 locals->BytePerPixelInDETY[k] = 2.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3492 locals->BytePerPixelInDETC[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3493 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3494 locals->BytePerPixelInDETY[k] = 1.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3495 locals->BytePerPixelInDETC[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3496 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3497 locals->BytePerPixelInDETY[k] = 1.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3498 locals->BytePerPixelInDETC[k] = 2.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3500 locals->BytePerPixelInDETY[k] = 4.0 / 3; in dml20v2_ModeSupportAndSystemConfigurationFull()
3501 locals->BytePerPixelInDETC[k] = 8.0 / 3; in dml20v2_ModeSupportAndSystemConfigurationFull()
3503 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3504 locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportWidth[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3506 locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportHeight[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3509 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3510 …locals->ReadBandwidthLuma[k] = locals->SwathWidthYSingleDPP[k] * dml_ceil(locals->BytePerPixelInDE… in dml20v2_ModeSupportAndSystemConfigurationFull()
3511 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3512 …locals->ReadBandwidthChroma[k] = locals->SwathWidthYSingleDPP[k] / 2 * dml_ceil(locals->BytePerPix… in dml20v2_ModeSupportAndSystemConfigurationFull()
3513 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k] / 2.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3514 locals->ReadBandwidth[k] = locals->ReadBandwidthLuma[k] + locals->ReadBandwidthChroma[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3516 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3517 if (mode_lib->vba.WritebackEnable[k] == true in dml20v2_ModeSupportAndSystemConfigurationFull()
3518 && mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3519 locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3520 * mode_lib->vba.WritebackDestinationHeight[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3521 / (mode_lib->vba.WritebackSourceHeight[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3522 * mode_lib->vba.HTotal[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3523 / mode_lib->vba.PixelClock[k]) * 4.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3524 } else if (mode_lib->vba.WritebackEnable[k] == true in dml20v2_ModeSupportAndSystemConfigurationFull()
3525 && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3526 locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3527 * mode_lib->vba.WritebackDestinationHeight[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3528 / (mode_lib->vba.WritebackSourceHeight[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3529 * mode_lib->vba.HTotal[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3530 / mode_lib->vba.PixelClock[k]) * 3.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3531 } else if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3532 locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3533 * mode_lib->vba.WritebackDestinationHeight[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3534 / (mode_lib->vba.WritebackSourceHeight[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3535 * mode_lib->vba.HTotal[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3536 / mode_lib->vba.PixelClock[k]) * 1.5; in dml20v2_ModeSupportAndSystemConfigurationFull()
3538 locals->WriteBandwidth[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3542 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3543 if (mode_lib->vba.DCCEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3606 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3607 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3608 if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3609 if (locals->WriteBandwidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3616 if (locals->WriteBandwidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3644 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3645 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3646 if (mode_lib->vba.ActiveWritebacksPerPlane[k] == 0) in dml20v2_ModeSupportAndSystemConfigurationFull()
3647 mode_lib->vba.ActiveWritebacksPerPlane[k] = 1; in dml20v2_ModeSupportAndSystemConfigurationFull()
3650 + mode_lib->vba.ActiveWritebacksPerPlane[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3657 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3658 if (mode_lib->vba.WritebackEnable[k] == true in dml20v2_ModeSupportAndSystemConfigurationFull()
3660 && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3667 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3668 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3670 && (mode_lib->vba.WritebackHRatio[k] != 1.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3671 || mode_lib->vba.WritebackVRatio[k] != 1.0)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3674 if (mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackMaxHSCLRatio in dml20v2_ModeSupportAndSystemConfigurationFull()
3675 || mode_lib->vba.WritebackVRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3677 || mode_lib->vba.WritebackHRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3679 || mode_lib->vba.WritebackVRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3681 || mode_lib->vba.WritebackLumaHTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3683 || mode_lib->vba.WritebackLumaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3685 || mode_lib->vba.WritebackHRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3686 > mode_lib->vba.WritebackLumaHTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3687 || mode_lib->vba.WritebackVRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3688 > mode_lib->vba.WritebackLumaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3689 || (mode_lib->vba.WritebackLumaHTaps[k] > 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3690 && ((mode_lib->vba.WritebackLumaHTaps[k] % 2) in dml20v2_ModeSupportAndSystemConfigurationFull()
3692 || (mode_lib->vba.WritebackPixelFormat[k] != dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
3693 && (mode_lib->vba.WritebackChromaHTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3695 || mode_lib->vba.WritebackChromaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3698 * mode_lib->vba.WritebackHRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3699 > mode_lib->vba.WritebackChromaHTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3701 * mode_lib->vba.WritebackVRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3702 > mode_lib->vba.WritebackChromaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3703 || (mode_lib->vba.WritebackChromaHTaps[k] > 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3704 && ((mode_lib->vba.WritebackChromaHTaps[k] % 2) == 1))))) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3707 if (mode_lib->vba.WritebackVRatio[k] < 1.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3709 dml_max(1.0 - 2.0 / dml_ceil(1.0 / mode_lib->vba.WritebackVRatio[k], 1.0), 0.0); in dml20v2_ModeSupportAndSystemConfigurationFull()
3713 if ((mode_lib->vba.WritebackPixelFormat[k] == dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
3714 && mode_lib->vba.WritebackLumaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3718 / mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3720 || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
3721 && mode_lib->vba.WritebackLumaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3723 * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3725 || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 in dml20v2_ModeSupportAndSystemConfigurationFull()
3726 && mode_lib->vba.WritebackLumaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3729 / mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3733 if (2.0 * mode_lib->vba.WritebackVRatio[k] < 1) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3738 if ((mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
3739 && mode_lib->vba.WritebackChromaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3741 * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3743 || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 in dml20v2_ModeSupportAndSystemConfigurationFull()
3744 && mode_lib->vba.WritebackChromaVTaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3747 / mode_lib->vba.WritebackDestinationWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3756 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3757 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3762 mode_lib->vba.WritebackPixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3763 mode_lib->vba.PixelClock[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3764 mode_lib->vba.WritebackHRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3765 mode_lib->vba.WritebackVRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3766 mode_lib->vba.WritebackLumaHTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3767 mode_lib->vba.WritebackLumaVTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3768 mode_lib->vba.WritebackChromaHTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3769 mode_lib->vba.WritebackChromaVTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3770 mode_lib->vba.WritebackDestinationWidth[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3771 mode_lib->vba.HTotal[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3775 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3776 if (mode_lib->vba.HRatio[k] > 1.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3777 locals->PSCL_FACTOR[k] = dml_min( in dml20v2_ModeSupportAndSystemConfigurationFull()
3780 * mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3782 mode_lib->vba.htaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3786 locals->PSCL_FACTOR[k] = dml_min( in dml20v2_ModeSupportAndSystemConfigurationFull()
3790 if (locals->BytePerPixelInDETC[k] == 0.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3791 locals->PSCL_FACTOR_CHROMA[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
3792 locals->MinDPPCLKUsingSingleDPP[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
3793 mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3795 mode_lib->vba.vtaps[k] / 6.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3798 mode_lib->vba.HRatio[k]), in dml20v2_ModeSupportAndSystemConfigurationFull()
3799 mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3800 * mode_lib->vba.VRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3801 / locals->PSCL_FACTOR[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3803 if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0) in dml20v2_ModeSupportAndSystemConfigurationFull()
3804 && locals->MinDPPCLKUsingSingleDPP[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3805 < 2.0 * mode_lib->vba.PixelClock[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3806 locals->MinDPPCLKUsingSingleDPP[k] = 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3807 * mode_lib->vba.PixelClock[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3810 if (mode_lib->vba.HRatio[k] / 2.0 > 1.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3811 locals->PSCL_FACTOR_CHROMA[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
3815 * mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3818 mode_lib->vba.HTAPsChroma[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3822 locals->PSCL_FACTOR_CHROMA[k] = dml_min( in dml20v2_ModeSupportAndSystemConfigurationFull()
3826 locals->MinDPPCLKUsingSingleDPP[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
3827 mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3829 mode_lib->vba.vtaps[k] / 6.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3832 mode_lib->vba.HRatio[k]), in dml20v2_ModeSupportAndSystemConfigurationFull()
3833 mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3834 * mode_lib->vba.VRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3835 / locals->PSCL_FACTOR[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3836 mode_lib->vba.VTAPsChroma[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3840 mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3842 mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3843 * mode_lib->vba.VRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3845 / locals->PSCL_FACTOR_CHROMA[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3847 if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3848 || mode_lib->vba.HTAPsChroma[k] > 6.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3849 || mode_lib->vba.VTAPsChroma[k] > 6.0) in dml20v2_ModeSupportAndSystemConfigurationFull()
3850 && locals->MinDPPCLKUsingSingleDPP[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3851 < 2.0 * mode_lib->vba.PixelClock[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3852 locals->MinDPPCLKUsingSingleDPP[k] = 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
3853 * mode_lib->vba.PixelClock[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3857 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3859 mode_lib->vba.SourcePixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3860 mode_lib->vba.SurfaceTiling[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3861 dml_ceil(locals->BytePerPixelInDETY[k], 1.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
3862 dml_ceil(locals->BytePerPixelInDETC[k], 2.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
3863 &locals->Read256BlockHeightY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3864 &locals->Read256BlockHeightC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3865 &locals->Read256BlockWidthY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3866 &locals->Read256BlockWidthC[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
3867 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3868 locals->MaxSwathHeightY[k] = locals->Read256BlockHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3869 locals->MaxSwathHeightC[k] = locals->Read256BlockHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3871 locals->MaxSwathHeightY[k] = locals->Read256BlockWidthY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3872 locals->MaxSwathHeightC[k] = locals->Read256BlockWidthC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3874 if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20v2_ModeSupportAndSystemConfigurationFull()
3875 || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
3876 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3877 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
3878 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_8)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3879 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml20v2_ModeSupportAndSystemConfigurationFull()
3880 || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20v2_ModeSupportAndSystemConfigurationFull()
3881 && (mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3883 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3885 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3887 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3889 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3891 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3893 || mode_lib->vba.SurfaceTiling[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3895 && mode_lib->vba.SourceScan[k] == dm_horz)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3896 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3898 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3901 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3903 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3904 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3905 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3906 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
3907 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3908 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3910 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3911 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 in dml20v2_ModeSupportAndSystemConfigurationFull()
3912 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3913 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3915 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3917 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3918 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
3921 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3930 / (locals->BytePerPixelInDETY[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3931 * locals->MinSwathHeightY[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3932 + locals->BytePerPixelInDETC[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3934 * locals->MinSwathHeightC[k])); in dml20v2_ModeSupportAndSystemConfigurationFull()
3935 if (locals->BytePerPixelInDETC[k] == 0.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3938 * dml_max(mode_lib->vba.HRatio[k], 1.0) in dml20v2_ModeSupportAndSystemConfigurationFull()
3939 / mode_lib->vba.LBBitPerPixel[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3940 / (mode_lib->vba.vtaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3943 mode_lib->vba.VRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3952 mode_lib->vba.HRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3954 / mode_lib->vba.LBBitPerPixel[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3955 / (mode_lib->vba.vtaps[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3958 mode_lib->vba.VRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
3964 mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3967 / mode_lib->vba.LBBitPerPixel[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3968 / (mode_lib->vba.VTAPsChroma[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3971 mode_lib->vba.VRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
3977 locals->MaximumSwathWidth[k] = dml_min( in dml20v2_ModeSupportAndSystemConfigurationFull()
3995 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
3997 mode_lib->vba.PixelClock[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) in dml20v2_ModeSupportAndSystemConfigurationFull()
4001 mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4004 mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 in dml20v2_ModeSupportAndSystemConfigurationFull()
4008 mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 in dml20v2_ModeSupportAndSystemConfigurationFull()
4011 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_disabled; in dml20v2_ModeSupportAndSystemConfigurationFull()
4015 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_2to1; in dml20v2_ModeSupportAndSystemConfigurationFull()
4017 } else if (locals->DSCEnabled[k] && (locals->HActive[k] > DCN20_MAX_DSC_IMAGE_WIDTH)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4018 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_2to1; in dml20v2_ModeSupportAndSystemConfigurationFull()
4020 … } else if (locals->HActive[k] > DCN20_MAX_420_IMAGE_WIDTH && locals->OutputFormat[k] == dm_420) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4021 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_2to1; in dml20v2_ModeSupportAndSystemConfigurationFull()
4026 …if (locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 1… in dml20v2_ModeSupportAndSystemConfigurationFull()
4027 && locals->SwathWidthYSingleDPP[k] <= locals->MaximumSwathWidth[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4028 && locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_disabled) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4029 locals->NoOfDPP[i][j][k] = 1; in dml20v2_ModeSupportAndSystemConfigurationFull()
4030 locals->RequiredDPPCLK[i][j][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4031 …locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0… in dml20v2_ModeSupportAndSystemConfigurationFull()
4033 locals->NoOfDPP[i][j][k] = 2; in dml20v2_ModeSupportAndSystemConfigurationFull()
4034 locals->RequiredDPPCLK[i][j][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4035 …locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0… in dml20v2_ModeSupportAndSystemConfigurationFull()
4040 …if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKD… in dml20v2_ModeSupportAndSystemConfigurationFull()
4047 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) in dml20v2_ModeSupportAndSystemConfigurationFull()
4048 …ls->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4057 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4058 …if (locals->ReadBandwidth[k] > BWOfNonSplitPlaneOfMaximumBandwidth && locals->NoOfDPP[i][j][k] == … in dml20v2_ModeSupportAndSystemConfigurationFull()
4059 BWOfNonSplitPlaneOfMaximumBandwidth = locals->ReadBandwidth[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4060 NumberOfNonSplitPlaneOfMaximumBandwidth = k; in dml20v2_ModeSupportAndSystemConfigurationFull()
4073 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4074 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_disabled; in dml20v2_ModeSupportAndSystemConfigurationFull()
4075 if (locals->SwathWidthYSingleDPP[k] <= locals->MaximumSwathWidth[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4076 locals->NoOfDPP[i][j][k] = 1; in dml20v2_ModeSupportAndSystemConfigurationFull()
4077 locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4080 locals->NoOfDPP[i][j][k] = 2; in dml20v2_ModeSupportAndSystemConfigurationFull()
4081 locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4086 mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4090 mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4096 …if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDP… in dml20v2_ModeSupportAndSystemConfigurationFull()
4102 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) in dml20v2_ModeSupportAndSystemConfigurationFull()
4103 …ls->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4118 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4119 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4120 …if (dml_min(locals->SwathWidthYSingleDPP[k], dml_round(mode_lib->vba.HActive[k] / 2.0 * mode_lib->… in dml20v2_ModeSupportAndSystemConfigurationFull()
4121 > locals->MaximumSwathWidth[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4125 if (locals->SwathWidthYSingleDPP[k] / 2.0 > locals->MaximumSwathWidth[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4144 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4145 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4158 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4159 if (!(mode_lib->vba.DSCInputBitPerComponent[k] == 12.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4160 || mode_lib->vba.DSCInputBitPerComponent[k] == 10.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4161 || mode_lib->vba.DSCInputBitPerComponent[k] == 8.0)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4166 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4167 locals->RequiresDSC[i][k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4168 locals->RequiresFEC[i][k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4169 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4170 if (mode_lib->vba.Output[k] == dm_hdmi) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4171 locals->RequiresDSC[i][k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4172 locals->RequiresFEC[i][k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4173 locals->OutputBppPerState[i][k] = TruncToValidBPP( in dml20v2_ModeSupportAndSystemConfigurationFull()
4174 dml_min(600.0, mode_lib->vba.PHYCLKPerState[i]) / mode_lib->vba.PixelClockBackEnd[k] * 24, in dml20v2_ModeSupportAndSystemConfigurationFull()
4175 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4177 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4178 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4179 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4180 } else if (mode_lib->vba.Output[k] == dm_dp in dml20v2_ModeSupportAndSystemConfigurationFull()
4181 || mode_lib->vba.Output[k] == dm_edp) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4182 if (mode_lib->vba.Output[k] == dm_edp) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4191 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4192 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4194 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4195 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4196 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4199 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4200 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4202 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4203 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4204 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4205 if (mode_lib->vba.DSCEnabled[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4206 locals->RequiresDSC[i][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4207 if (mode_lib->vba.Output[k] == dm_dp) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4208 locals->RequiresFEC[i][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4210 locals->RequiresFEC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4214 locals->RequiresDSC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4215 locals->RequiresFEC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4217 locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; in dml20v2_ModeSupportAndSystemConfigurationFull()
4222 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4223 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4225 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4226 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4227 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4230 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4231 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4233 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4234 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4235 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4236 if (mode_lib->vba.DSCEnabled[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4237 locals->RequiresDSC[i][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4238 if (mode_lib->vba.Output[k] == dm_dp) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4239 locals->RequiresFEC[i][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4241 locals->RequiresFEC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4245 locals->RequiresDSC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4246 locals->RequiresFEC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4248 locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; in dml20v2_ModeSupportAndSystemConfigurationFull()
4255 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4256 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4258 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4259 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4260 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4263 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4264 mode_lib->vba.ForcedOutputLinkBPP[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4266 mode_lib->vba.Output[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4267 mode_lib->vba.OutputFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4268 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4269 if (mode_lib->vba.DSCEnabled[k] == true || mode_lib->vba.Outbpp == BPP_INVALID) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4270 locals->RequiresDSC[i][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4271 if (mode_lib->vba.Output[k] == dm_dp) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4272 locals->RequiresFEC[i][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4274 locals->RequiresFEC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4278 locals->RequiresDSC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4279 locals->RequiresFEC[i][k] = false; in dml20v2_ModeSupportAndSystemConfigurationFull()
4281 locals->OutputBppPerState[i][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4286 locals->OutputBppPerState[i][k] = BPP_BLENDED_PIPE; in dml20v2_ModeSupportAndSystemConfigurationFull()
4292 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4293 if (!mode_lib->vba.skip_dio_check[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4294 && (locals->OutputBppPerState[i][k] == BPP_INVALID in dml20v2_ModeSupportAndSystemConfigurationFull()
4295 || (mode_lib->vba.OutputFormat[k] == dm_420 in dml20v2_ModeSupportAndSystemConfigurationFull()
4296 && mode_lib->vba.Interlace[k] == true in dml20v2_ModeSupportAndSystemConfigurationFull()
4303 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4305 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4306 if ((mode_lib->vba.Output[k] == dm_dp in dml20v2_ModeSupportAndSystemConfigurationFull()
4307 || mode_lib->vba.Output[k] == dm_edp)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4308 if (mode_lib->vba.OutputFormat[k] == dm_420 in dml20v2_ModeSupportAndSystemConfigurationFull()
4309 || mode_lib->vba.OutputFormat[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4315 if (locals->RequiresDSC[i][k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4316 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4317 if (mode_lib->vba.PixelClockBackEnd[k] / 6.0 / mode_lib->vba.DSCFormatFactor in dml20v2_ModeSupportAndSystemConfigurationFull()
4323 if (mode_lib->vba.PixelClockBackEnd[k] / 3.0 / mode_lib->vba.DSCFormatFactor in dml20v2_ModeSupportAndSystemConfigurationFull()
4337 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4338 if (locals->RequiresDSC[i][k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4339 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4355 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4356 if (mode_lib->vba.BlendingAndTiming[k] != k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4358 } else if (locals->RequiresDSC[i][k] == 0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4359 || locals->RequiresDSC[i][k] == false) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4361 } else if (mode_lib->vba.PixelClockBackEnd[k] > 3200.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4363 mode_lib->vba.PixelClockBackEnd[k] / 400.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4365 } else if (mode_lib->vba.PixelClockBackEnd[k] > 1360.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4367 } else if (mode_lib->vba.PixelClockBackEnd[k] > 680.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4369 } else if (mode_lib->vba.PixelClockBackEnd[k] > 340.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4374 if (locals->OutputBppPerState[i][k] == BPP_BLENDED_PIPE in dml20v2_ModeSupportAndSystemConfigurationFull()
4375 || locals->OutputBppPerState[i][k] == BPP_INVALID) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4378 mode_lib->vba.bpp = locals->OutputBppPerState[i][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4380 if (locals->RequiresDSC[i][k] == true && mode_lib->vba.bpp != 0.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4381 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_disabled) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4382 locals->DSCDelayPerState[i][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4384 mode_lib->vba.DSCInputBitPerComponent[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4387 mode_lib->vba.HActive[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4391 mode_lib->vba.OutputFormat[k]) in dml20v2_ModeSupportAndSystemConfigurationFull()
4393 mode_lib->vba.OutputFormat[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4395 locals->DSCDelayPerState[i][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4397 mode_lib->vba.DSCInputBitPerComponent[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4399 dml_ceil(mode_lib->vba.HActive[k] / mode_lib->vba.slices, 1.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
4401 mode_lib->vba.OutputFormat[k]) in dml20v2_ModeSupportAndSystemConfigurationFull()
4402 + dscComputeDelay(mode_lib->vba.OutputFormat[k])); in dml20v2_ModeSupportAndSystemConfigurationFull()
4404 locals->DSCDelayPerState[i][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4405 … locals->DSCDelayPerState[i][k] * mode_lib->vba.PixelClock[k] / mode_lib->vba.PixelClockBackEnd[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4407 locals->DSCDelayPerState[i][k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4410 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4413 if (mode_lib->vba.BlendingAndTiming[k] == m && locals->RequiresDSC[i][m] == true) in dml20v2_ModeSupportAndSystemConfigurationFull()
4414 locals->DSCDelayPerState[i][k] = locals->DSCDelayPerState[i][m]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4423 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4424 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) in dml20v2_ModeSupportAndSystemConfigurationFull()
4425 …->SwathWidthYPerState[i][j][k] = dml_min(locals->SwathWidthYSingleDPP[k], dml_round(locals->HActiv… in dml20v2_ModeSupportAndSystemConfigurationFull()
4427 … locals->SwathWidthYPerState[i][j][k] = locals->SwathWidthYSingleDPP[k] / locals->NoOfDPP[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4428 …WidthGranularityY = 256 / dml_ceil(locals->BytePerPixelInDETY[k], 1) / locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4429 …locals->RoundedUpMaxSwathSizeBytesY = (dml_ceil(locals->SwathWidthYPerState[i][j][k] - 1, locals->… in dml20v2_ModeSupportAndSystemConfigurationFull()
4430 … + locals->SwathWidthGranularityY) * locals->BytePerPixelInDETY[k] * locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4431 if (locals->SourcePixelFormat[k] == dm_420_10) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4434 if (locals->MaxSwathHeightC[k] > 0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4435 …hWidthGranularityC = 256 / dml_ceil(locals->BytePerPixelInDETC[k], 2) / locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4437 …locals->RoundedUpMaxSwathSizeBytesC = (dml_ceil(locals->SwathWidthYPerState[i][j][k] / 2 - 1, loca… in dml20v2_ModeSupportAndSystemConfigurationFull()
4438 + locals->SwathWidthGranularityC) * locals->BytePerPixelInDETC[k] * locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4440 if (locals->SourcePixelFormat[k] == dm_420_10) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4447 locals->SwathHeightYPerState[i][j][k] = locals->MaxSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4448 locals->SwathHeightCPerState[i][j][k] = locals->MaxSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4450 locals->SwathHeightYPerState[i][j][k] = locals->MinSwathHeightY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4451 locals->SwathHeightCPerState[i][j][k] = locals->MinSwathHeightC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4454 if (locals->BytePerPixelInDETC[k] == 0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4455 …BufferSizeInKByte[0] * 1024 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4457 } else if (locals->SwathHeightYPerState[i][j][k] <= locals->SwathHeightCPerState[i][j][k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4458 …cals->LinesInDETLuma = locals->DETBufferSizeInKByte[0] * 1024 / 2 / locals->BytePerPixelInDETY[k] / in dml20v2_ModeSupportAndSystemConfigurationFull()
4459 locals->SwathWidthYPerState[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4460 …rSizeInKByte[0] * 1024 / 2 / locals->BytePerPixelInDETC[k] / (locals->SwathWidthYPerState[i][j][k]… in dml20v2_ModeSupportAndSystemConfigurationFull()
4462 …zeInKByte[0] * 1024 * 2 / 3 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4463 …rSizeInKByte[0] * 1024 / 3 / locals->BytePerPixelInDETY[k] / (locals->SwathWidthYPerState[i][j][k]… in dml20v2_ModeSupportAndSystemConfigurationFull()
4467 …dml_floor(locals->LineBufferSize / locals->LBBitPerPixel[k] / (locals->SwathWidthYPerState[i][j][k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4468 / dml_max(locals->HRatio[k], 1)), 1)) - (locals->vtaps[k] - 1); in dml20v2_ModeSupportAndSystemConfigurationFull()
4471 dml_floor(locals->LineBufferSize / locals->LBBitPerPixel[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4472 / (locals->SwathWidthYPerState[i][j][k] / 2 in dml20v2_ModeSupportAndSystemConfigurationFull()
4473 / dml_max(locals->HRatio[k] / 2, 1)), 1)) - (locals->VTAPsChroma[k] - 1); in dml20v2_ModeSupportAndSystemConfigurationFull()
4476 locals->LinesInDETLuma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETY[k] * in dml20v2_ModeSupportAndSystemConfigurationFull()
4477 locals->PSCL_FACTOR[k] / locals->ReturnBWPerState[i][0], in dml20v2_ModeSupportAndSystemConfigurationFull()
4479 locals->SwathHeightYPerState[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4482 if (locals->BytePerPixelInDETC[k] == 0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4483 …rgentLatencySupportUsPerState[i][j][k] = locals->EffectiveDETLBLinesLuma * (locals->HTotal[k] / lo… in dml20v2_ModeSupportAndSystemConfigurationFull()
4484 … / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * in dml20v2_ModeSupportAndSystemConfigurationFull()
4485 …dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i][0] / locals->NoOfDPP[i][… in dml20v2_ModeSupportAndSystemConfigurationFull()
4488 locals->LinesInDETChroma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETC[k] * in dml20v2_ModeSupportAndSystemConfigurationFull()
4489 locals->PSCL_FACTOR_CHROMA[k] / locals->ReturnBWPerState[i][0], in dml20v2_ModeSupportAndSystemConfigurationFull()
4491 locals->SwathHeightCPerState[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4492 locals->UrgentLatencySupportUsPerState[i][j][k] = dml_min( in dml20v2_ModeSupportAndSystemConfigurationFull()
4493 locals->EffectiveDETLBLinesLuma * (locals->HTotal[k] / locals->PixelClock[k]) in dml20v2_ModeSupportAndSystemConfigurationFull()
4494 / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * in dml20v2_ModeSupportAndSystemConfigurationFull()
4495 …dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i][0] / locals->NoOfDPP[i][… in dml20v2_ModeSupportAndSystemConfigurationFull()
4496 …locals->EffectiveDETLBLinesChroma * (locals->HTotal[k] / locals->PixelClock[k]) / (locals->VRatio[ in dml20v2_ModeSupportAndSystemConfigurationFull()
4497 locals->EffectiveDETLBLinesChroma * locals->SwathWidthYPerState[i][j][k] / 2 * in dml20v2_ModeSupportAndSystemConfigurationFull()
4498 …dml_ceil(locals->BytePerPixelInDETC[k], 2) / (locals->ReturnBWPerState[i][0] / locals->NoOfDPP[i][… in dml20v2_ModeSupportAndSystemConfigurationFull()
4507 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4508 if (locals->UrgentLatencySupportUsPerState[i][j][k] < locals->UrgentLatency) in dml20v2_ModeSupportAndSystemConfigurationFull()
4519 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4520 if (locals->DCCEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4522 locals->TotalNumberOfDCCActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4531 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4532 …locals->MaxTotalVActiveRDBandwidth = locals->MaxTotalVActiveRDBandwidth + locals->ReadBandwidth[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4537 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4538 locals->NoOfDPPThisState[k] = locals->NoOfDPP[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4539 locals->RequiredDPPCLKThisState[k] = locals->RequiredDPPCLK[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4540 locals->SwathHeightYThisState[k] = locals->SwathHeightYPerState[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4541 locals->SwathHeightCThisState[k] = locals->SwathHeightCPerState[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4542 locals->SwathWidthYThisState[k] = locals->SwathWidthYPerState[i][j][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4545 mode_lib->vba.PixelClock[k] / 16.0); in dml20v2_ModeSupportAndSystemConfigurationFull()
4546 if (mode_lib->vba.BytePerPixelInDETC[k] == 0.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4547 if (mode_lib->vba.VRatio[k] <= 1.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4553 mode_lib->vba.BytePerPixelInDETY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4556 * mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4557 * mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4558 / mode_lib->vba.NoOfDPP[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4565 mode_lib->vba.BytePerPixelInDETY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4568 * mode_lib->vba.PSCL_FACTOR[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4569 * mode_lib->vba.RequiredDPPCLK[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4572 if (mode_lib->vba.VRatio[k] <= 1.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4578 mode_lib->vba.BytePerPixelInDETY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4581 * mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4582 * mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4583 / mode_lib->vba.NoOfDPP[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4590 mode_lib->vba.BytePerPixelInDETY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4593 * mode_lib->vba.PSCL_FACTOR[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4594 * mode_lib->vba.RequiredDPPCLK[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4596 if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4602 mode_lib->vba.BytePerPixelInDETC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4605 * mode_lib->vba.HRatio[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4607 * mode_lib->vba.PixelClock[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4608 / mode_lib->vba.NoOfDPP[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4615 mode_lib->vba.BytePerPixelInDETC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4618 * mode_lib->vba.PSCL_FACTOR_CHROMA[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4619 * mode_lib->vba.RequiredDPPCLK[i][j][k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4623 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4626 mode_lib->vba.DCCEnable[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4627 mode_lib->vba.Read256BlockHeightY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4628 mode_lib->vba.Read256BlockWidthY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4629 mode_lib->vba.SourcePixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4630 mode_lib->vba.SurfaceTiling[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4631 dml_ceil(mode_lib->vba.BytePerPixelInDETY[k], 1.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
4632 mode_lib->vba.SourceScan[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4633 mode_lib->vba.ViewportWidth[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4634 mode_lib->vba.ViewportHeight[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4635 mode_lib->vba.SwathWidthYPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4640 mode_lib->vba.PitchY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4641 mode_lib->vba.DCCMetaPitchY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4642 &mode_lib->vba.MacroTileWidthY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4645 &mode_lib->vba.PTEBufferSizeNotExceededY[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4646 &mode_lib->vba.dpte_row_height[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4647 &mode_lib->vba.meta_row_height[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4648 mode_lib->vba.PrefetchLinesY[0][0][k] = CalculatePrefetchSourceLines( in dml20v2_ModeSupportAndSystemConfigurationFull()
4650 mode_lib->vba.VRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4651 mode_lib->vba.vtaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4652 mode_lib->vba.Interlace[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4654 mode_lib->vba.SwathHeightYPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4655 mode_lib->vba.ViewportYStartY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4656 &mode_lib->vba.PrefillY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4657 &mode_lib->vba.MaxNumSwY[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4658 if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20v2_ModeSupportAndSystemConfigurationFull()
4659 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
4660 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
4661 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
4662 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4665 mode_lib->vba.DCCEnable[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4666 mode_lib->vba.Read256BlockHeightY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4667 mode_lib->vba.Read256BlockWidthY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4668 mode_lib->vba.SourcePixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4669 mode_lib->vba.SurfaceTiling[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4670 dml_ceil(mode_lib->vba.BytePerPixelInDETC[k], 2.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
4671 mode_lib->vba.SourceScan[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4672 mode_lib->vba.ViewportWidth[k] / 2.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4673 mode_lib->vba.ViewportHeight[k] / 2.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4674 mode_lib->vba.SwathWidthYPerState[i][j][k] / 2.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4679 mode_lib->vba.PitchC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4681 &mode_lib->vba.MacroTileWidthC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4684 &mode_lib->vba.PTEBufferSizeNotExceededC[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4685 &mode_lib->vba.dpte_row_height_chroma[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4686 &mode_lib->vba.meta_row_height_chroma[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4687 mode_lib->vba.PrefetchLinesC[0][0][k] = CalculatePrefetchSourceLines( in dml20v2_ModeSupportAndSystemConfigurationFull()
4689 mode_lib->vba.VRatio[k] / 2.0, in dml20v2_ModeSupportAndSystemConfigurationFull()
4690 mode_lib->vba.VTAPsChroma[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4691 mode_lib->vba.Interlace[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4693 mode_lib->vba.SwathHeightCPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4694 mode_lib->vba.ViewportYStartC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4695 &mode_lib->vba.PrefillC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4696 &mode_lib->vba.MaxNumSwC[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4701 locals->PrefetchLinesC[0][0][k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4702 locals->PTEBufferSizeNotExceededC[i][j][k] = true; in dml20v2_ModeSupportAndSystemConfigurationFull()
4705 locals->PDEAndMetaPTEBytesPerFrame[0][0][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4707 locals->MetaRowBytes[0][0][k] = mode_lib->vba.MetaRowBytesY + mode_lib->vba.MetaRowBytesC; in dml20v2_ModeSupportAndSystemConfigurationFull()
4708 …locals->DPTEBytesPerRow[0][0][k] = mode_lib->vba.DPTEBytesPerRowY + mode_lib->vba.DPTEBytesPerRowC; in dml20v2_ModeSupportAndSystemConfigurationFull()
4712 mode_lib->vba.SourcePixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4713 mode_lib->vba.VRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4714 mode_lib->vba.DCCEnable[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4715 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4718 mode_lib->vba.meta_row_height[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4719 mode_lib->vba.meta_row_height_chroma[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4722 mode_lib->vba.dpte_row_height[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4723 mode_lib->vba.dpte_row_height_chroma[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4724 &mode_lib->vba.meta_row_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4725 &mode_lib->vba.dpte_row_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4726 &mode_lib->vba.qual_row_bw[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4744 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4745 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4746 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4747 locals->WritebackDelay[i][k] = mode_lib->vba.WritebackLatency in dml20v2_ModeSupportAndSystemConfigurationFull()
4749 mode_lib->vba.WritebackPixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4750 mode_lib->vba.WritebackHRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4751 mode_lib->vba.WritebackVRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4752 mode_lib->vba.WritebackLumaHTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4753 mode_lib->vba.WritebackLumaVTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4754 mode_lib->vba.WritebackChromaHTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4755 mode_lib->vba.WritebackChromaVTaps[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4756 mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4758 locals->WritebackDelay[i][k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4761 if (mode_lib->vba.BlendingAndTiming[m] == k in dml20v2_ModeSupportAndSystemConfigurationFull()
4764 locals->WritebackDelay[i][k] = dml_max(locals->WritebackDelay[i][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4778 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4780 if (mode_lib->vba.BlendingAndTiming[k] == m) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4781 locals->WritebackDelay[i][k] = locals->WritebackDelay[i][m]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4785 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4786 for (m = 0; m < locals->NumberOfCursors[k]; m++) in dml20v2_ModeSupportAndSystemConfigurationFull()
4787 …locals->cursor_bw[k] = locals->NumberOfCursors[k] * locals->CursorWidth[k][m] * locals->CursorBPP[ in dml20v2_ModeSupportAndSystemConfigurationFull()
4788 / 8 / (locals->HTotal[k] / locals->PixelClock[k]) * locals->VRatio[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4791 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4792 locals->MaximumVStartup[0][0][k] = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4793 …ml_max(1.0, dml_ceil(locals->WritebackDelay[i][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.Pixel… in dml20v2_ModeSupportAndSystemConfigurationFull()
4806 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4808 if (mode_lib->vba.XFCEnabled[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4812 mode_lib->vba.VRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4813 locals->SwathWidthYPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4814 dml_ceil(locals->BytePerPixelInDETY[k], 1.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
4815 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4832 ….ReturnBWPerState[i][0], mode_lib->vba.ReadBandwidthLuma[k], mode_lib->vba.ReadBandwidthChroma[k],… in dml20v2_ModeSupportAndSystemConfigurationFull()
4833 …mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[ in dml20v2_ModeSupportAndSystemConfigurationFull()
4834k], mode_lib->vba.RequiredDISPCLK[i][j], mode_lib->vba.PixelClock[k], mode_lib->vba.DSCDelayPerSta… in dml20v2_ModeSupportAndSystemConfigurationFull()
4836 …lib->vba.SwathWidthYPerState[i][j][k] / mode_lib->vba.HRatio[k], mode_lib->vba.OutputFormat[k], mo… in dml20v2_ModeSupportAndSystemConfigurationFull()
4837k], mode_lib->vba.BytePerPixelInDETY[k], mode_lib->vba.BytePerPixelInDETC[k], mode_lib->vba.SwathH… in dml20v2_ModeSupportAndSystemConfigurationFull()
4838 &mode_lib->vba.DSTXAfterScaler[k], &mode_lib->vba.DSTYAfterScaler[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4840 mode_lib->vba.IsErrorResult[i][j][k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4843 mode_lib->vba.RequiredDPPCLK[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4845 mode_lib->vba.PixelClock[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4847 mode_lib->vba.NoOfDPP[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4848 mode_lib->vba.NumberOfCursors[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4849 mode_lib->vba.VTotal[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4850 - mode_lib->vba.VActive[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4851 mode_lib->vba.HTotal[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4853 mode_lib->vba.MaximumVStartup[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4856 mode_lib->vba.DynamicMetadataEnable[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4857 mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4858 mode_lib->vba.DynamicMetadataTransmittedBytes[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4859 mode_lib->vba.DCCEnable[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4863 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4864 mode_lib->vba.MetaRowBytes[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4865 mode_lib->vba.DPTEBytesPerRow[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4866 mode_lib->vba.PrefetchLinesY[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4867 mode_lib->vba.SwathWidthYPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4868 mode_lib->vba.BytePerPixelInDETY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4869 mode_lib->vba.PrefillY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4870 mode_lib->vba.MaxNumSwY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4871 mode_lib->vba.PrefetchLinesC[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4872 mode_lib->vba.BytePerPixelInDETC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4873 mode_lib->vba.PrefillC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4874 mode_lib->vba.MaxNumSwC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4875 mode_lib->vba.SwathHeightYPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4876 mode_lib->vba.SwathHeightCPerState[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4878 mode_lib->vba.XFCEnabled[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4880 mode_lib->vba.Interlace[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4882 mode_lib->vba.DSTXAfterScaler[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4883 mode_lib->vba.DSTYAfterScaler[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4884 &mode_lib->vba.LineTimesForPrefetch[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4885 &mode_lib->vba.PrefetchBW[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4886 &mode_lib->vba.LinesForMetaPTE[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4887 &mode_lib->vba.LinesForMetaAndDPTERow[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4888 &mode_lib->vba.VRatioPreY[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4889 &mode_lib->vba.VRatioPreC[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4890 &mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4891 &mode_lib->vba.Tno_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4892 &mode_lib->vba.VUpdateOffsetPix[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4893 &mode_lib->vba.VUpdateWidthPix[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4894 &mode_lib->vba.VReadyOffsetPix[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4900 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4901 if (locals->PDEAndMetaPTEBytesPerFrame[0][0][k] == 0) in dml20v2_ModeSupportAndSystemConfigurationFull()
4902 locals->prefetch_vm_bw[k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4903 else if (locals->LinesForMetaPTE[k] > 0) in dml20v2_ModeSupportAndSystemConfigurationFull()
4904 locals->prefetch_vm_bw[k] = locals->PDEAndMetaPTEBytesPerFrame[0][0][k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4905 / (locals->LinesForMetaPTE[k] * locals->HTotal[k] / locals->PixelClock[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4907 locals->prefetch_vm_bw[k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4910 if (locals->MetaRowBytes[0][0][k] + locals->DPTEBytesPerRow[0][0][k] == 0) in dml20v2_ModeSupportAndSystemConfigurationFull()
4911 locals->prefetch_row_bw[k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4912 else if (locals->LinesForMetaAndDPTERow[k] > 0) in dml20v2_ModeSupportAndSystemConfigurationFull()
4913 … locals->prefetch_row_bw[k] = (locals->MetaRowBytes[0][0][k] + locals->DPTEBytesPerRow[0][0][k]) in dml20v2_ModeSupportAndSystemConfigurationFull()
4914 / (locals->LinesForMetaAndDPTERow[k] * locals->HTotal[k] / locals->PixelClock[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4916 locals->prefetch_row_bw[k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4921 …+ mode_lib->vba.cursor_bw[k] + mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.meta_row_bw[k] + mod… in dml20v2_ModeSupportAndSystemConfigurationFull()
4924 + mode_lib->vba.cursor_bw[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4926 mode_lib->vba.prefetch_vm_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4927 mode_lib->vba.prefetch_row_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4928 dml_max(mode_lib->vba.ReadBandwidth[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4929 mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k]) in dml20v2_ModeSupportAndSystemConfigurationFull()
4930 + mode_lib->vba.meta_row_bw[k] + mode_lib->vba.dpte_row_bw[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4941 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4942 if (locals->LineTimesForPrefetch[k] < 2.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4943 || locals->LinesForMetaPTE[k] >= 8.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4944 || locals->LinesForMetaAndDPTERow[k] >= 16.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4945 || mode_lib->vba.IsErrorResult[i][j][k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4950 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4951 if (locals->VRatioPreY[i][j][k] > 4.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4952 || locals->VRatioPreC[i][j][k] > 4.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
4953 || mode_lib->vba.IsErrorResult[i][j][k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4964 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4967 - mode_lib->vba.cursor_bw[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4969 mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.qual_row_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
4970 mode_lib->vba.PrefetchBW[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
4972 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4973 mode_lib->vba.ImmediateFlipBytes[k] = 0.0; in dml20v2_ModeSupportAndSystemConfigurationFull()
4974 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
4975 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4976 mode_lib->vba.ImmediateFlipBytes[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
4977 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[0][0][k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4978 + mode_lib->vba.MetaRowBytes[0][0][k] in dml20v2_ModeSupportAndSystemConfigurationFull()
4979 + mode_lib->vba.DPTEBytesPerRow[0][0][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4983 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4984 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20v2_ModeSupportAndSystemConfigurationFull()
4985 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20v2_ModeSupportAndSystemConfigurationFull()
4988 + mode_lib->vba.ImmediateFlipBytes[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
4992 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5001 mode_lib->vba.SourcePixelFormat[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5002 mode_lib->vba.ImmediateFlipBytes[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5003 mode_lib->vba.HTotal[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
5004 / mode_lib->vba.PixelClock[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5005 mode_lib->vba.VRatio[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5006 mode_lib->vba.Tno_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5007 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5008 mode_lib->vba.MetaRowBytes[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5009 mode_lib->vba.DPTEBytesPerRow[0][0][k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5010 mode_lib->vba.DCCEnable[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5011 mode_lib->vba.dpte_row_height[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5012 mode_lib->vba.meta_row_height[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5013 mode_lib->vba.qual_row_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5014 &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5015 &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5016 &mode_lib->vba.final_flip_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5017 &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
5020 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5023 + mode_lib->vba.cursor_bw[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
5025 mode_lib->vba.prefetch_vm_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5026 mode_lib->vba.prefetch_row_bw[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5027 mode_lib->vba.final_flip_bw[k] in dml20v2_ModeSupportAndSystemConfigurationFull()
5029 mode_lib->vba.ReadBandwidth[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5030 mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k])); in dml20v2_ModeSupportAndSystemConfigurationFull()
5037 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5038 if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5064 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5065 if (locals->PTEBufferSizeNotExceededY[i][j][k] == false in dml20v2_ModeSupportAndSystemConfigurationFull()
5066 || locals->PTEBufferSizeNotExceededC[i][j][k] == false) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5074 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5076 if (mode_lib->vba.CursorWidth[k][j] > 0.0) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5082 / (mode_lib->vba.CursorWidth[k][j] in dml20v2_ModeSupportAndSystemConfigurationFull()
5083 * mode_lib->vba.CursorBPP[k][j] in dml20v2_ModeSupportAndSystemConfigurationFull()
5086 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20v2_ModeSupportAndSystemConfigurationFull()
5087 / mode_lib->vba.VRatio[k] < mode_lib->vba.UrgentLatencyPixelDataOnly in dml20v2_ModeSupportAndSystemConfigurationFull()
5088 || (mode_lib->vba.CursorBPP[k][j] == 64.0 in dml20v2_ModeSupportAndSystemConfigurationFull()
5098 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5099 locals->AlignedYPitch[k] = dml_ceil( in dml20v2_ModeSupportAndSystemConfigurationFull()
5100 dml_max(mode_lib->vba.PitchY[k], mode_lib->vba.ViewportWidth[k]), in dml20v2_ModeSupportAndSystemConfigurationFull()
5101 locals->MacroTileWidthY[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
5102 if (locals->AlignedYPitch[k] > mode_lib->vba.PitchY[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5105 if (mode_lib->vba.DCCEnable[k] == true) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5106 locals->AlignedDCCMetaPitch[k] = dml_ceil( in dml20v2_ModeSupportAndSystemConfigurationFull()
5108 mode_lib->vba.DCCMetaPitchY[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5109 mode_lib->vba.ViewportWidth[k]), in dml20v2_ModeSupportAndSystemConfigurationFull()
5110 64.0 * locals->Read256BlockWidthY[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
5112 locals->AlignedDCCMetaPitch[k] = mode_lib->vba.DCCMetaPitchY[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
5114 if (locals->AlignedDCCMetaPitch[k] > mode_lib->vba.DCCMetaPitchY[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5117 if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20v2_ModeSupportAndSystemConfigurationFull()
5118 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20v2_ModeSupportAndSystemConfigurationFull()
5119 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
5120 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20v2_ModeSupportAndSystemConfigurationFull()
5121 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5122 locals->AlignedCPitch[k] = dml_ceil( in dml20v2_ModeSupportAndSystemConfigurationFull()
5124 mode_lib->vba.PitchC[k], in dml20v2_ModeSupportAndSystemConfigurationFull()
5125 mode_lib->vba.ViewportWidth[k] / 2.0), in dml20v2_ModeSupportAndSystemConfigurationFull()
5126 locals->MacroTileWidthC[k]); in dml20v2_ModeSupportAndSystemConfigurationFull()
5128 locals->AlignedCPitch[k] = mode_lib->vba.PitchC[k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
5130 if (locals->AlignedCPitch[k] > mode_lib->vba.PitchC[k]) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5209 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5210 mode_lib->vba.DPPPerPlane[k] = locals->NoOfDPP[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
5211 locals->DPPCLK[k] = locals->RequiredDPPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
5222 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5223 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20v2_ModeSupportAndSystemConfigurationFull()
5224 mode_lib->vba.ODMCombineEnabled[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
5225 locals->ODMCombineEnablePerState[mode_lib->vba.VoltageLevel][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
5227 mode_lib->vba.ODMCombineEnabled[k] = 0; in dml20v2_ModeSupportAndSystemConfigurationFull()
5229 mode_lib->vba.DSCEnabled[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
5230 locals->RequiresDSC[mode_lib->vba.VoltageLevel][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()
5231 mode_lib->vba.OutputBpp[k] = in dml20v2_ModeSupportAndSystemConfigurationFull()
5232 locals->OutputBppPerState[mode_lib->vba.VoltageLevel][k]; in dml20v2_ModeSupportAndSystemConfigurationFull()