Lines Matching refs:k

1088 	unsigned int j, k;  in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()  local
1097 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1098 if (mode_lib->vba.WritebackEnable[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1103 mode_lib->vba.WritebackPixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1104 mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1105 mode_lib->vba.WritebackHRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1106 mode_lib->vba.WritebackVRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1107 mode_lib->vba.WritebackLumaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1108 mode_lib->vba.WritebackLumaVTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1109 mode_lib->vba.WritebackChromaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1110 mode_lib->vba.WritebackChromaVTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1111 mode_lib->vba.WritebackDestinationWidth[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1112 mode_lib->vba.HTotal[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1117 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1118 if (mode_lib->vba.HRatio[k] > 1) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1119 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1122 * mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1124 mode_lib->vba.htaps[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1128 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1134 mode_lib->vba.PixelClock[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1136 mode_lib->vba.vtaps[k] / 6.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1139 mode_lib->vba.HRatio[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1141 mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1142 * mode_lib->vba.VRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1143 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1146 if ((mode_lib->vba.htaps[k] > 6 || mode_lib->vba.vtaps[k] > 6) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1148 < 2 * mode_lib->vba.PixelClock[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1149 mode_lib->vba.DPPCLKUsingSingleDPPLuma = 2 * mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1152 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1153 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1154 mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = 0.0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1155 mode_lib->vba.DPPCLKUsingSingleDPP[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1158 if (mode_lib->vba.HRatio[k] > 1) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1159 mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1163 * mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1166 mode_lib->vba.HTAPsChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1170 mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1175 mode_lib->vba.PixelClock[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1177 mode_lib->vba.VTAPsChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1181 mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1184 mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1185 * mode_lib->vba.VRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1187 / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1190 if ((mode_lib->vba.HTAPsChroma[k] > 6 || mode_lib->vba.VTAPsChroma[k] > 6) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1192 < 2 * mode_lib->vba.PixelClock[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1194 * mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1197 mode_lib->vba.DPPCLKUsingSingleDPP[k] = dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1203 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1204 if (mode_lib->vba.BlendingAndTiming[k] != k) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1206 if (mode_lib->vba.ODMCombineEnabled[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1210 mode_lib->vba.PixelClock[k] / 2 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1220 mode_lib->vba.PixelClock[k] / 2 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1224 } else if (!mode_lib->vba.ODMCombineEnabled[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1228 mode_lib->vba.PixelClock[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1238 mode_lib->vba.PixelClock[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1275 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1276 if (mode_lib->vba.DPPPerPlane[k] == 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1277 mode_lib->vba.DPPCLK_calculated[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1279 mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.DPPCLKUsingSingleDPP[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1280 / mode_lib->vba.DPPPerPlane[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1285 mode_lib->vba.DPPCLK_calculated[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1290 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1291 mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.GlobalDPPCLK / 255 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1293 mode_lib->vba.DPPCLK_calculated[k] * 255 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1296 DTRACE(" dppclk_mhz[%i] (calculated) = %f", k, mode_lib->vba.DPPCLK_calculated[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1301 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1302 if (mode_lib->vba.DCCEnable[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1331 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1334 if (mode_lib->vba.SourceScan[k] == dm_horz) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1335 mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportWidth[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1337 mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportHeight[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1339 if (mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1342 if (mode_lib->vba.BlendingAndTiming[k] == j in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1343 && mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1347 mode_lib->vba.SwathWidthY[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1348 (double) mode_lib->vba.SwathWidthSingleDPPY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1350 mode_lib->vba.HActive[k] / 2.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1351 * mode_lib->vba.HRatio[k])); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1353 if (mode_lib->vba.DPPPerPlane[k] == 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1354 mode_lib->vba.SwathWidthY[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1356 mode_lib->vba.SwathWidthY[k] = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1357 / mode_lib->vba.DPPPerPlane[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1362 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1363 if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1364 mode_lib->vba.BytePerPixelDETY[k] = 8; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1365 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1366 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1367 mode_lib->vba.BytePerPixelDETY[k] = 4; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1368 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1369 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1370 mode_lib->vba.BytePerPixelDETY[k] = 2; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1371 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1372 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1373 mode_lib->vba.BytePerPixelDETY[k] = 1; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1374 mode_lib->vba.BytePerPixelDETC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1375 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1376 mode_lib->vba.BytePerPixelDETY[k] = 1; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1377 mode_lib->vba.BytePerPixelDETC[k] = 2; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1379 mode_lib->vba.BytePerPixelDETY[k] = 4.0 / 3.0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1380 mode_lib->vba.BytePerPixelDETC[k] = 8.0 / 3.0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1385 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1386 mode_lib->vba.ReadBandwidthPlaneLuma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1387 * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1388 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1389 * mode_lib->vba.VRatio[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1390 mode_lib->vba.ReadBandwidthPlaneChroma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1391 / 2 * dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1392 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1393 * mode_lib->vba.VRatio[k] / 2; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1396 k, in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1397 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1398 + mode_lib->vba.ReadBandwidthPlaneChroma[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1399 mode_lib->vba.TotalDataReadBandwidth += mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1400 + mode_lib->vba.ReadBandwidthPlaneChroma[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1405 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1407 + mode_lib->vba.DPPPerPlane[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1408 if (mode_lib->vba.DCCEnable[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1410 + mode_lib->vba.DPPPerPlane[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1420 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1423 if (mode_lib->vba.VRatio[k] <= 1.0) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1424 mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1425 (double) mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1426 * mode_lib->vba.DPPPerPlane[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1427 / mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1428 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1430 mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1431 (double) mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1432 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1433 / mode_lib->vba.DPPCLK[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1435 DataFabricLineDeliveryTimeLuma = mode_lib->vba.SwathWidthSingleDPPY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1436 * mode_lib->vba.SwathHeightY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1437 * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1438 / (mode_lib->vba.ReturnBW * mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1443 - mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1445 if (mode_lib->vba.BytePerPixelDETC[k] == 0) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1446 mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = 0.0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1447 else if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1448 mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1449 mode_lib->vba.SwathWidthY[k] / 2.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1450 * mode_lib->vba.DPPPerPlane[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1451 / (mode_lib->vba.HRatio[k] / 2.0) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1452 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1454 mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1455 mode_lib->vba.SwathWidthY[k] / 2.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1456 / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1457 / mode_lib->vba.DPPCLK[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1459 DataFabricLineDeliveryTimeChroma = mode_lib->vba.SwathWidthSingleDPPY[k] / 2.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1460 * mode_lib->vba.SwathHeightC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1461 * dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1463 * mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1469 - mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1492 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1493 if (mode_lib->vba.WritebackEnable[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1494 …alActiveWriteback = mode_lib->vba.TotalActiveWriteback + mode_lib->vba.ActiveWritebacksPerPlane[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1530 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1531 mode_lib->vba.LinesInDETY[k] = mode_lib->vba.DETBufferSizeY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1532 / mode_lib->vba.BytePerPixelDETY[k] / mode_lib->vba.SwathWidthY[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1533 mode_lib->vba.LinesInDETYRoundedDownToSwath[k] = dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1534 mode_lib->vba.LinesInDETY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1535 mode_lib->vba.SwathHeightY[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1536 mode_lib->vba.FullDETBufferingTimeY[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1537 mode_lib->vba.LinesInDETYRoundedDownToSwath[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1538 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1539 / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1540 / mode_lib->vba.VRatio[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1541 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1542 mode_lib->vba.LinesInDETC[k] = mode_lib->vba.DETBufferSizeC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1543 / mode_lib->vba.BytePerPixelDETC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1544 / (mode_lib->vba.SwathWidthY[k] / 2); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1545 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1546 mode_lib->vba.LinesInDETC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1547 mode_lib->vba.SwathHeightC[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1548 mode_lib->vba.FullDETBufferingTimeC[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1549 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1550 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1551 / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1552 / (mode_lib->vba.VRatio[k] / 2); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1554 mode_lib->vba.LinesInDETC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1555 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1556 mode_lib->vba.FullDETBufferingTimeC[k] = 999999; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1561 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1562 if (mode_lib->vba.FullDETBufferingTimeY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1565 mode_lib->vba.FullDETBufferingTimeY[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1567 (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1568 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1570 if (mode_lib->vba.FullDETBufferingTimeC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1573 mode_lib->vba.FullDETBufferingTimeC[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1575 (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1576 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1581 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1582 if (mode_lib->vba.DCCEnable[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1585 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1586 / mode_lib->vba.DCCRate[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1588 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1589 / mode_lib->vba.DCCRate[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1594 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1596 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1599 if (mode_lib->vba.DCCEnable[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1602 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1604 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1610 + mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1612 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1641 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1643 mode_lib->vba.VBlankTime = (double) (mode_lib->vba.VTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1644 - mode_lib->vba.VActive[k]) * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1645 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1663 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; k++) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1664 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1665 mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1667 1.1 * mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1669 mode_lib->vba.BytePerPixelDETY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1671 / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1672 1.1 * mode_lib->vba.SwathWidthY[k] / 2.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1674 mode_lib->vba.BytePerPixelDETC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1676 / mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1678 mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = 1.1 * mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1679 * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) / 64.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1680 / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1681 mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1682 mode_lib->vba.DCFCLKDeepSleepPerPlane[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1683 mode_lib->vba.PixelClock[k] / 16.0); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1686 mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1690 k, in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1691 mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1708 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1711 mode_lib->vba.LinesInDETY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1713 mode_lib->vba.LinesInDETY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1714 * mode_lib->vba.DPPCLK[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1715 * mode_lib->vba.BytePerPixelDETY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1716 * mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1718 / mode_lib->vba.DPPPerPlane[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1720 mode_lib->vba.SwathHeightY[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1723 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1724 / mode_lib->vba.VRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1726 * mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1727 * mode_lib->vba.BytePerPixelDETY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1729 / mode_lib->vba.DPPPerPlane[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1731 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1734 mode_lib->vba.LinesInDETC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1736 mode_lib->vba.LinesInDETC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1737 * mode_lib->vba.DPPCLK[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1738 * mode_lib->vba.BytePerPixelDETC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1739 * mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1741 / mode_lib->vba.DPPPerPlane[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1743 mode_lib->vba.SwathHeightC[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1746 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1747 / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1748 / (mode_lib->vba.VRatio[k] / 2) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1750 * (mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1752 * mode_lib->vba.BytePerPixelDETC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1754 / mode_lib->vba.DPPPerPlane[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1755 mode_lib->vba.UrgentLatencySupportUs[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1759 mode_lib->vba.UrgentLatencySupportUs[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1765 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1768 mode_lib->vba.UrgentLatencySupportUs[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1776 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1777 if ((mode_lib->vba.BlendingAndTiming[k] != k) || !mode_lib->vba.DSCEnabled[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1778 mode_lib->vba.DSCCLK_calculated[k] = 0.0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1780 if (mode_lib->vba.OutputFormat[k] == dm_420 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1781 || mode_lib->vba.OutputFormat[k] == dm_n422) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1785 if (mode_lib->vba.ODMCombineEnabled[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1786 mode_lib->vba.DSCCLK_calculated[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1787 mode_lib->vba.PixelClockBackEnd[k] / 6 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1793 mode_lib->vba.DSCCLK_calculated[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1794 mode_lib->vba.PixelClockBackEnd[k] / 3 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1804 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1805 double bpp = mode_lib->vba.OutputBpp[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1806 unsigned int slices = mode_lib->vba.NumberOfDSCSlices[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1808 if (mode_lib->vba.DSCEnabled[k] && bpp != 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1809 if (!mode_lib->vba.ODMCombineEnabled[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1810 mode_lib->vba.DSCDelay[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1812 mode_lib->vba.DSCInputBitPerComponent[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1815 (double) mode_lib->vba.HActive[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1816 / mode_lib->vba.NumberOfDSCSlices[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1819 mode_lib->vba.OutputFormat[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1821 mode_lib->vba.OutputFormat[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1823 mode_lib->vba.DSCDelay[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1826 mode_lib->vba.DSCInputBitPerComponent[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1829 (double) mode_lib->vba.HActive[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1830 / mode_lib->vba.NumberOfDSCSlices[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1833 mode_lib->vba.OutputFormat[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1835 mode_lib->vba.OutputFormat[k])); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1837 mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1838 * mode_lib->vba.PixelClock[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1839 / mode_lib->vba.PixelClockBackEnd[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1841 mode_lib->vba.DSCDelay[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1845 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1847 if (j != k && mode_lib->vba.BlendingAndTiming[k] == j in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1849 mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[j]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1852 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1861 mode_lib->vba.SourcePixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1862 mode_lib->vba.SurfaceTiling[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1863 dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1864 dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1865 &mode_lib->vba.BlockHeight256BytesY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1866 &mode_lib->vba.BlockHeight256BytesC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1867 &mode_lib->vba.BlockWidth256BytesY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1868 &mode_lib->vba.BlockWidth256BytesC[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1871 mode_lib->vba.DCCEnable[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1872 mode_lib->vba.BlockHeight256BytesY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1873 mode_lib->vba.BlockWidth256BytesY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1874 mode_lib->vba.SourcePixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1875 mode_lib->vba.SurfaceTiling[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1876 dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1877 mode_lib->vba.SourceScan[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1878 mode_lib->vba.ViewportWidth[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1879 mode_lib->vba.ViewportHeight[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1880 mode_lib->vba.SwathWidthY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1885 mode_lib->vba.PitchY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1886 mode_lib->vba.DCCMetaPitchY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1887 &mode_lib->vba.MacroTileWidthY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1891 &mode_lib->vba.dpte_row_height[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1892 &mode_lib->vba.meta_row_height[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1893 mode_lib->vba.PrefetchSourceLinesY[k] = CalculatePrefetchSourceLines( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1895 mode_lib->vba.VRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1896 mode_lib->vba.vtaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1897 mode_lib->vba.Interlace[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1899 mode_lib->vba.SwathHeightY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1900 mode_lib->vba.ViewportYStartY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1901 &mode_lib->vba.VInitPreFillY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1902 &mode_lib->vba.MaxNumSwathY[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1904 if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1905 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1906 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1907 && mode_lib->vba.SourcePixelFormat[k] != dm_444_8)) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1911 mode_lib->vba.DCCEnable[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1912 mode_lib->vba.BlockHeight256BytesC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1913 mode_lib->vba.BlockWidth256BytesC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1914 mode_lib->vba.SourcePixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1915 mode_lib->vba.SurfaceTiling[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1917 mode_lib->vba.BytePerPixelDETC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1919 mode_lib->vba.SourceScan[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1920 mode_lib->vba.ViewportWidth[k] / 2, in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1921 mode_lib->vba.ViewportHeight[k] / 2, in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1922 mode_lib->vba.SwathWidthY[k] / 2, in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1927 mode_lib->vba.PitchC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1929 &mode_lib->vba.MacroTileWidthC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1933 &mode_lib->vba.dpte_row_height_chroma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1934 &mode_lib->vba.meta_row_height_chroma[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1935 mode_lib->vba.PrefetchSourceLinesC[k] = CalculatePrefetchSourceLines( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1937 mode_lib->vba.VRatio[k] / 2, in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1938 mode_lib->vba.VTAPsChroma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1939 mode_lib->vba.Interlace[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1941 mode_lib->vba.SwathHeightC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1942 mode_lib->vba.ViewportYStartC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1943 &mode_lib->vba.VInitPreFillC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1944 &mode_lib->vba.MaxNumSwathC[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1949 mode_lib->vba.MaxNumSwathC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1950 mode_lib->vba.PrefetchSourceLinesC[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1953 mode_lib->vba.PixelPTEBytesPerRow[k] = PixelPTEBytesPerRowY + PixelPTEBytesPerRowC; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1954 mode_lib->vba.PDEAndMetaPTEBytesFrame[k] = PDEAndMetaPTEBytesFrameY in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1956 mode_lib->vba.MetaRowByte[k] = MetaRowByteY + MetaRowByteC; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1960 mode_lib->vba.SourcePixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1961 mode_lib->vba.VRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1962 mode_lib->vba.DCCEnable[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1963 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1966 mode_lib->vba.meta_row_height[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1967 mode_lib->vba.meta_row_height_chroma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1970 mode_lib->vba.dpte_row_height[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1971 mode_lib->vba.dpte_row_height_chroma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1972 &mode_lib->vba.meta_row_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1973 &mode_lib->vba.dpte_row_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1974 &mode_lib->vba.qual_row_bw[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1979 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1980 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1981 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1982 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1985 mode_lib->vba.WritebackPixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1986 mode_lib->vba.WritebackHRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1987 mode_lib->vba.WritebackVRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1988 mode_lib->vba.WritebackLumaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1989 mode_lib->vba.WritebackLumaVTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1990 mode_lib->vba.WritebackChromaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1991 mode_lib->vba.WritebackChromaVTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1992 mode_lib->vba.WritebackDestinationWidth[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1995 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1997 if (mode_lib->vba.BlendingAndTiming[j] == k in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1999 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2001 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2018 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2020 if (mode_lib->vba.BlendingAndTiming[k] == j) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2021 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2025 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2026 mode_lib->vba.MaxVStartupLines[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2027 mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2031 mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2032 / (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2033 / mode_lib->vba.PixelClock[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2037 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2040 mode_lib->vba.MaxVStartupLines[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2042 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2043 mode_lib->vba.cursor_bw[k] = 0.0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2044 for (j = 0; j < mode_lib->vba.NumberOfCursors[k]; ++j) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2045 mode_lib->vba.cursor_bw[k] += mode_lib->vba.CursorWidth[k][j] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2046 * mode_lib->vba.CursorBPP[k][j] / 8.0 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2047 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2048 * mode_lib->vba.VRatio[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2063 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2064 if (mode_lib->vba.XFCEnabled[k] == true) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2068 mode_lib->vba.VRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2069 mode_lib->vba.SwathWidthY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2071 mode_lib->vba.BytePerPixelDETY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2073 mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2074 / mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2090 mode_lib->vba.ErrorResult[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2093 mode_lib->vba.DPPCLK[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2095 mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2097 mode_lib->vba.DSCDelay[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2098 mode_lib->vba.DPPPerPlane[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2099 mode_lib->vba.ScalerEnabled[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2100 mode_lib->vba.NumberOfCursors[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2107 (unsigned int) (mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2108 / mode_lib->vba.HRatio[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2109 mode_lib->vba.OutputFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2110 mode_lib->vba.VTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2111 - mode_lib->vba.VActive[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2112 mode_lib->vba.HTotal[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2116 mode_lib->vba.MaxVStartupLines[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2119 mode_lib->vba.DynamicMetadataEnable[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2120 mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2121 mode_lib->vba.DynamicMetadataTransmittedBytes[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2122 mode_lib->vba.DCCEnable[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2126 mode_lib->vba.PDEAndMetaPTEBytesFrame[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2127 mode_lib->vba.MetaRowByte[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2128 mode_lib->vba.PixelPTEBytesPerRow[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2129 mode_lib->vba.PrefetchSourceLinesY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2130 mode_lib->vba.SwathWidthY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2131 mode_lib->vba.BytePerPixelDETY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2132 mode_lib->vba.VInitPreFillY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2133 mode_lib->vba.MaxNumSwathY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2134 mode_lib->vba.PrefetchSourceLinesC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2135 mode_lib->vba.BytePerPixelDETC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2136 mode_lib->vba.VInitPreFillC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2137 mode_lib->vba.MaxNumSwathC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2138 mode_lib->vba.SwathHeightY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2139 mode_lib->vba.SwathHeightC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2141 mode_lib->vba.XFCEnabled[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2143 mode_lib->vba.Interlace[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2145 &mode_lib->vba.DSTXAfterScaler[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2146 &mode_lib->vba.DSTYAfterScaler[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2147 &mode_lib->vba.DestinationLinesForPrefetch[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2148 &mode_lib->vba.PrefetchBandwidth[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2149 &mode_lib->vba.DestinationLinesToRequestVMInVBlank[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2150 &mode_lib->vba.DestinationLinesToRequestRowInVBlank[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2151 &mode_lib->vba.VRatioPrefetchY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2152 &mode_lib->vba.VRatioPrefetchC[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2153 &mode_lib->vba.RequiredPrefetchPixDataBWLuma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2155 &mode_lib->vba.Tno_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2156 &mode_lib->vba.VUpdateOffsetPix[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2157 &mode_lib->vba.VUpdateWidthPix[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2158 &mode_lib->vba.VReadyOffsetPix[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2159 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2160 mode_lib->vba.VStartup[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2162 mode_lib->vba.MaxVStartupLines[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2165 mode_lib->vba.VStartup[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2169 mode_lib->vba.VStartup[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2172 mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2176 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2178 if (mode_lib->vba.PDEAndMetaPTEBytesFrame[k] == 0) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2179 mode_lib->vba.prefetch_vm_bw[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2180 else if (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] > 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2181 mode_lib->vba.prefetch_vm_bw[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2182 (double) mode_lib->vba.PDEAndMetaPTEBytesFrame[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2183 / (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2184 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2185 / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2187 mode_lib->vba.prefetch_vm_bw[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2190 if (mode_lib->vba.MetaRowByte[k] + mode_lib->vba.PixelPTEBytesPerRow[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2192 mode_lib->vba.prefetch_row_bw[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2193 else if (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] > 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2194 mode_lib->vba.prefetch_row_bw[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2195 (double) (mode_lib->vba.MetaRowByte[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2196 + mode_lib->vba.PixelPTEBytesPerRow[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2197 / (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2198 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2199 / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2201 mode_lib->vba.prefetch_row_bw[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2206 MaxTotalRDBandwidth + mode_lib->vba.cursor_bw[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2208 mode_lib->vba.prefetch_vm_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2210 mode_lib->vba.prefetch_row_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2212 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2213 + mode_lib->vba.ReadBandwidthPlaneChroma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2214 mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2215 + mode_lib->vba.meta_row_bw[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2216 + mode_lib->vba.dpte_row_bw[k])); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2218 if (mode_lib->vba.DestinationLinesForPrefetch[k] < 2) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2220 if (mode_lib->vba.VRatioPrefetchY[k] > 4 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2221 || mode_lib->vba.VRatioPrefetchC[k] > 4) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2241 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2244 - mode_lib->vba.cursor_bw[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2246 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2247 + mode_lib->vba.ReadBandwidthPlaneChroma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2248 + mode_lib->vba.qual_row_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2249 mode_lib->vba.PrefetchBandwidth[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2252 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2253 ImmediateFlipBytes[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2254 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2255 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2256 ImmediateFlipBytes[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2257 mode_lib->vba.PDEAndMetaPTEBytesFrame[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2258 + mode_lib->vba.MetaRowByte[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2259 + mode_lib->vba.PixelPTEBytesPerRow[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2263 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2264 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2265 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2268 + ImmediateFlipBytes[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2271 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2280 mode_lib->vba.SourcePixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2281 ImmediateFlipBytes[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2282 mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2283 / mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2284 mode_lib->vba.VRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2285 mode_lib->vba.Tno_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2286 mode_lib->vba.PDEAndMetaPTEBytesFrame[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2287 mode_lib->vba.MetaRowByte[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2288 mode_lib->vba.PixelPTEBytesPerRow[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2289 mode_lib->vba.DCCEnable[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2290 mode_lib->vba.dpte_row_height[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2291 mode_lib->vba.meta_row_height[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2292 mode_lib->vba.qual_row_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2293 &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2294 &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2295 &final_flip_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2296 &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2298 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2301 + mode_lib->vba.cursor_bw[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2303 mode_lib->vba.prefetch_vm_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2305 mode_lib->vba.prefetch_row_bw[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2306 final_flip_bw[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2308 mode_lib->vba.ReadBandwidthPlaneLuma[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2309 + mode_lib->vba.ReadBandwidthPlaneChroma[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2310 mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]))); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2316 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2317 if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2325 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2326 if (mode_lib->vba.ErrorResult[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2340 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2341 if (mode_lib->vba.VRatioPrefetchY[k] <= 1) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2342 mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2343 mode_lib->vba.SwathWidthY[k] * mode_lib->vba.DPPPerPlane[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2344 / mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2345 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2347 mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2348 mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2349 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2350 / mode_lib->vba.DPPCLK[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2352 if (mode_lib->vba.BytePerPixelDETC[k] == 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2353 mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2355 if (mode_lib->vba.VRatioPrefetchC[k] <= 1) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2356 mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2357 mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2358 * mode_lib->vba.DPPPerPlane[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2359 / mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2360 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2362 mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2363 mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2364 / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2365 / mode_lib->vba.DPPCLK[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2371 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2373 mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = true; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2374 mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2375 mode_lib->vba.MinTTUVBlank[k] = dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2381 mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2382 mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2383 mode_lib->vba.MinTTUVBlank[k] = dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2387 mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2388 mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = false; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2389 mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.UrgentWatermark; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2391 if (!mode_lib->vba.DynamicMetadataEnable[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2392 mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.TCalc in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2393 + mode_lib->vba.MinTTUVBlank[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2399 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2400 mode_lib->vba.ActiveDPPs = mode_lib->vba.ActiveDPPs + mode_lib->vba.DPPPerPlane[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2403 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2417 / mode_lib->vba.LBBitPerPixel[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2418 / (mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2420 mode_lib->vba.HRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2422 1)) - (mode_lib->vba.vtaps[k] - 1); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2429 / mode_lib->vba.LBBitPerPixel[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2430 / (mode_lib->vba.SwathWidthY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2433 mode_lib->vba.HRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2437 - (mode_lib->vba.VTAPsChroma[k] - 1); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2440 / mode_lib->vba.VRatio[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2441 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2444 / (mode_lib->vba.VRatio[k] / 2) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2445 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2447 if (mode_lib->vba.SwathWidthY[k] > 2 * mode_lib->vba.DPPOutputBufferPixels) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2449 / mode_lib->vba.SwathWidthY[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2450 } else if (mode_lib->vba.SwathWidthY[k] > mode_lib->vba.DPPOutputBufferPixels) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2456 if (mode_lib->vba.SwathWidthY[k] / 2 > 2 * mode_lib->vba.DPPOutputBufferPixels) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2458 / (mode_lib->vba.SwathWidthY[k] / 2); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2459 } else if (mode_lib->vba.SwathWidthY[k] / 2 > mode_lib->vba.DPPOutputBufferPixels) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2465 DPPOPPBufferingY = (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2467 MaxDETBufferingTimeY = mode_lib->vba.FullDETBufferingTimeY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2468 + (mode_lib->vba.LinesInDETY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2469 - mode_lib->vba.LinesInDETYRoundedDownToSwath[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2470 / mode_lib->vba.SwathHeightY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2471 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2472 / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2481 * mode_lib->vba.SwathHeightY[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2482 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2483 / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2486 if (mode_lib->vba.BytePerPixelDETC[k] > 0) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2487 double DPPOPPBufferingC = (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2488 / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2492 mode_lib->vba.FullDETBufferingTimeC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2493 + (mode_lib->vba.LinesInDETC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2494 - mode_lib->vba.LinesInDETCRoundedDownToSwath[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2495 / mode_lib->vba.SwathHeightC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2496 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2497 / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2509 * mode_lib->vba.SwathHeightC[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2510 * (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2511 / mode_lib->vba.PixelClock[k]); in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2513 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2517 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2521 if (mode_lib->vba.WritebackEnable[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2524 if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2528 / (mode_lib->vba.WritebackDestinationWidth[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2529 * mode_lib->vba.WritebackDestinationHeight[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2530 / (mode_lib->vba.WritebackSourceHeight[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2531 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2532 / mode_lib->vba.PixelClock[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2535 } else if (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2543 / (mode_lib->vba.WritebackDestinationWidth[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2544 * mode_lib->vba.WritebackDestinationHeight[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2545 / (mode_lib->vba.WritebackSourceHeight[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2546 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2547 / mode_lib->vba.PixelClock[k])) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2555 / (mode_lib->vba.WritebackDestinationWidth[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2556 * mode_lib->vba.WritebackDestinationHeight[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2557 / (mode_lib->vba.WritebackSourceHeight[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2558 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2559 / mode_lib->vba.PixelClock[k])) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2562 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2563 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2569 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2570 if (mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2573 mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2588 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2589 if (!mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2598 for (k = 0; k <= mode_lib->vba.soc.num_states; k++) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2600 mode_lib->vba.DRAMClockChangeSupport[k][j] = mode_lib->vba.DRAMClockChangeSupport[0][0]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2603 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2604 if (mode_lib->vba.XFCEnabled[k] == true) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2607 mode_lib->vba.XFCSlaveVUpdateOffset[k] = mode_lib->vba.XFCTSlvVupdateOffset; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2608 mode_lib->vba.XFCSlaveVupdateWidth[k] = mode_lib->vba.XFCTSlvVupdateWidth; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2609 mode_lib->vba.XFCSlaveVReadyOffset[k] = mode_lib->vba.XFCTSlvVreadyOffset; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2617 mode_lib->vba.VRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2618 mode_lib->vba.SwathWidthY[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2619 dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2620 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2633 mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2636 / (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2637 / mode_lib->vba.PixelClock[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2639 mode_lib->vba.XFCTransferDelay[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2642 / (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2643 / mode_lib->vba.PixelClock[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2645 mode_lib->vba.XFCPrechargeDelay[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2650 / (mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2651 / mode_lib->vba.PixelClock[k]), in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2656 (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2657 + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2658 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2659 / mode_lib->vba.PixelClock[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2671 mode_lib->vba.XFCPrefetchMargin[k] = in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2674 + (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2675 + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2676 * mode_lib->vba.HTotal[k] in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2677 / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2679 mode_lib->vba.XFCSlaveVUpdateOffset[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2680 mode_lib->vba.XFCSlaveVupdateWidth[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2681 mode_lib->vba.XFCSlaveVReadyOffset[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2682 mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2683 mode_lib->vba.XFCPrechargeDelay[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2684 mode_lib->vba.XFCTransferDelay[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2685 mode_lib->vba.XFCPrefetchMargin[k] = 0; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2692 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2693 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2694 unsigned int Margin = (mode_lib->vba.MaxVStartupLines[k] - mode_lib->vba.VStartup[k]) in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2695 * mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2705 if (mode_lib->vba.VTotal_Max[k] == mode_lib->vba.VTotal[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2707 mode_lib->vba.VStartup[k] = mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2731 unsigned int j, k; in dml20_DisplayPipeConfiguration() local
2733 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DisplayPipeConfiguration()
2736 if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20_DisplayPipeConfiguration()
2739 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { in dml20_DisplayPipeConfiguration()
2742 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { in dml20_DisplayPipeConfiguration()
2745 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { in dml20_DisplayPipeConfiguration()
2748 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20_DisplayPipeConfiguration()
2756 if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20_DisplayPipeConfiguration()
2757 || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20_DisplayPipeConfiguration()
2758 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20_DisplayPipeConfiguration()
2759 || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { in dml20_DisplayPipeConfiguration()
2760 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20_DisplayPipeConfiguration()
2762 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20_DisplayPipeConfiguration()
2764 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20_DisplayPipeConfiguration()
2765 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { in dml20_DisplayPipeConfiguration()
2775 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20_DisplayPipeConfiguration()
2778 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20_DisplayPipeConfiguration()
2791 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_DisplayPipeConfiguration()
2799 if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20_DisplayPipeConfiguration()
2800 || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20_DisplayPipeConfiguration()
2801 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20_DisplayPipeConfiguration()
2802 || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { in dml20_DisplayPipeConfiguration()
2803 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml20_DisplayPipeConfiguration()
2804 || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20_DisplayPipeConfiguration()
2805 && (mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2807 || mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2809 || mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2811 || mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2813 || mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2815 || mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2817 || mode_lib->vba.SurfaceTiling[k] in dml20_DisplayPipeConfiguration()
2819 && mode_lib->vba.SourceScan[k] == dm_horz)) { in dml20_DisplayPipeConfiguration()
2821 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8 in dml20_DisplayPipeConfiguration()
2822 && mode_lib->vba.SourceScan[k] != dm_horz) { in dml20_DisplayPipeConfiguration()
2829 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20_DisplayPipeConfiguration()
2832 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 in dml20_DisplayPipeConfiguration()
2833 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_DisplayPipeConfiguration()
2836 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 in dml20_DisplayPipeConfiguration()
2837 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_DisplayPipeConfiguration()
2846 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_DisplayPipeConfiguration()
2847 SwathWidth = mode_lib->vba.ViewportWidth[k]; in dml20_DisplayPipeConfiguration()
2849 SwathWidth = mode_lib->vba.ViewportHeight[k]; in dml20_DisplayPipeConfiguration()
2852 if (mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) { in dml20_DisplayPipeConfiguration()
2856 if (mode_lib->vba.BlendingAndTiming[k] == j in dml20_DisplayPipeConfiguration()
2857 && mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) { in dml20_DisplayPipeConfiguration()
2865 mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k]); in dml20_DisplayPipeConfiguration()
2867 if (mode_lib->vba.DPPPerPlane[k] == 0) in dml20_DisplayPipeConfiguration()
2870 SwathWidth = SwathWidth / mode_lib->vba.DPPPerPlane[k]; in dml20_DisplayPipeConfiguration()
2878 if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { in dml20_DisplayPipeConfiguration()
2889 if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { in dml20_DisplayPipeConfiguration()
2899 mode_lib->vba.SwathHeightY[k] = MaximumSwathHeightY; in dml20_DisplayPipeConfiguration()
2900 mode_lib->vba.SwathHeightC[k] = MaximumSwathHeightC; in dml20_DisplayPipeConfiguration()
2902 mode_lib->vba.SwathHeightY[k] = MinimumSwathHeightY; in dml20_DisplayPipeConfiguration()
2903 mode_lib->vba.SwathHeightC[k] = MinimumSwathHeightC; in dml20_DisplayPipeConfiguration()
2906 if (mode_lib->vba.SwathHeightC[k] == 0) { in dml20_DisplayPipeConfiguration()
2907 mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte[0] * 1024; in dml20_DisplayPipeConfiguration()
2908 mode_lib->vba.DETBufferSizeC[k] = 0; in dml20_DisplayPipeConfiguration()
2909 } else if (mode_lib->vba.SwathHeightY[k] <= mode_lib->vba.SwathHeightC[k]) { in dml20_DisplayPipeConfiguration()
2910 mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20_DisplayPipeConfiguration()
2912 mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20_DisplayPipeConfiguration()
2915 mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20_DisplayPipeConfiguration()
2917 mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte[0] in dml20_DisplayPipeConfiguration()
3291 unsigned int j, k, m; in dml20_ModeSupportAndSystemConfigurationFull() local
3298 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3299 if (mode_lib->vba.ScalerEnabled[k] == false in dml20_ModeSupportAndSystemConfigurationFull()
3300 && ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20_ModeSupportAndSystemConfigurationFull()
3301 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
3302 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20_ModeSupportAndSystemConfigurationFull()
3303 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20_ModeSupportAndSystemConfigurationFull()
3304 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) in dml20_ModeSupportAndSystemConfigurationFull()
3305 || mode_lib->vba.HRatio[k] != 1.0 in dml20_ModeSupportAndSystemConfigurationFull()
3306 || mode_lib->vba.htaps[k] != 1.0 in dml20_ModeSupportAndSystemConfigurationFull()
3307 || mode_lib->vba.VRatio[k] != 1.0 in dml20_ModeSupportAndSystemConfigurationFull()
3308 || mode_lib->vba.vtaps[k] != 1.0)) { in dml20_ModeSupportAndSystemConfigurationFull()
3310 } else if (mode_lib->vba.vtaps[k] < 1.0 || mode_lib->vba.vtaps[k] > 8.0 in dml20_ModeSupportAndSystemConfigurationFull()
3311 || mode_lib->vba.htaps[k] < 1.0 || mode_lib->vba.htaps[k] > 8.0 in dml20_ModeSupportAndSystemConfigurationFull()
3312 || (mode_lib->vba.htaps[k] > 1.0 in dml20_ModeSupportAndSystemConfigurationFull()
3313 && (mode_lib->vba.htaps[k] % 2) == 1) in dml20_ModeSupportAndSystemConfigurationFull()
3314 || mode_lib->vba.HRatio[k] > mode_lib->vba.MaxHSCLRatio in dml20_ModeSupportAndSystemConfigurationFull()
3315 || mode_lib->vba.VRatio[k] > mode_lib->vba.MaxVSCLRatio in dml20_ModeSupportAndSystemConfigurationFull()
3316 || mode_lib->vba.HRatio[k] > mode_lib->vba.htaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3317 || mode_lib->vba.VRatio[k] > mode_lib->vba.vtaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3318 || (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20_ModeSupportAndSystemConfigurationFull()
3319 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
3320 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20_ModeSupportAndSystemConfigurationFull()
3321 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20_ModeSupportAndSystemConfigurationFull()
3322 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 in dml20_ModeSupportAndSystemConfigurationFull()
3323 && (mode_lib->vba.HRatio[k] / 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
3324 > mode_lib->vba.HTAPsChroma[k] in dml20_ModeSupportAndSystemConfigurationFull()
3325 || mode_lib->vba.VRatio[k] / 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
3326 > mode_lib->vba.VTAPsChroma[k]))) { in dml20_ModeSupportAndSystemConfigurationFull()
3333 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3334 if ((mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml20_ModeSupportAndSystemConfigurationFull()
3335 && mode_lib->vba.SourceScan[k] != dm_horz) in dml20_ModeSupportAndSystemConfigurationFull()
3336 || ((mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d in dml20_ModeSupportAndSystemConfigurationFull()
3337 || mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d_x in dml20_ModeSupportAndSystemConfigurationFull()
3338 || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d in dml20_ModeSupportAndSystemConfigurationFull()
3339 || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_t in dml20_ModeSupportAndSystemConfigurationFull()
3340 || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_x in dml20_ModeSupportAndSystemConfigurationFull()
3341 || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d in dml20_ModeSupportAndSystemConfigurationFull()
3342 || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d_x) in dml20_ModeSupportAndSystemConfigurationFull()
3343 && mode_lib->vba.SourcePixelFormat[k] != dm_444_64) in dml20_ModeSupportAndSystemConfigurationFull()
3344 || (mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_r_x in dml20_ModeSupportAndSystemConfigurationFull()
3345 && (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8 in dml20_ModeSupportAndSystemConfigurationFull()
3346 || mode_lib->vba.SourcePixelFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
3348 || mode_lib->vba.SourcePixelFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
3350 || (((mode_lib->vba.SurfaceTiling[k] == dm_sw_gfx7_2d_thin_gl in dml20_ModeSupportAndSystemConfigurationFull()
3351 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3353 && !((mode_lib->vba.SourcePixelFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
3355 || mode_lib->vba.SourcePixelFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
3357 && mode_lib->vba.SourceScan[k] in dml20_ModeSupportAndSystemConfigurationFull()
3361 && mode_lib->vba.DCCEnable[k] in dml20_ModeSupportAndSystemConfigurationFull()
3363 || (mode_lib->vba.DCCEnable[k] == true in dml20_ModeSupportAndSystemConfigurationFull()
3364 && (mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3366 || mode_lib->vba.SourcePixelFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
3368 || mode_lib->vba.SourcePixelFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
3375 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3376 if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { in dml20_ModeSupportAndSystemConfigurationFull()
3377 locals->BytePerPixelInDETY[k] = 8.0; in dml20_ModeSupportAndSystemConfigurationFull()
3378 locals->BytePerPixelInDETC[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
3379 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { in dml20_ModeSupportAndSystemConfigurationFull()
3380 locals->BytePerPixelInDETY[k] = 4.0; in dml20_ModeSupportAndSystemConfigurationFull()
3381 locals->BytePerPixelInDETC[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
3382 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20_ModeSupportAndSystemConfigurationFull()
3383 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16) { in dml20_ModeSupportAndSystemConfigurationFull()
3384 locals->BytePerPixelInDETY[k] = 2.0; in dml20_ModeSupportAndSystemConfigurationFull()
3385 locals->BytePerPixelInDETC[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
3386 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8) { in dml20_ModeSupportAndSystemConfigurationFull()
3387 locals->BytePerPixelInDETY[k] = 1.0; in dml20_ModeSupportAndSystemConfigurationFull()
3388 locals->BytePerPixelInDETC[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
3389 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { in dml20_ModeSupportAndSystemConfigurationFull()
3390 locals->BytePerPixelInDETY[k] = 1.0; in dml20_ModeSupportAndSystemConfigurationFull()
3391 locals->BytePerPixelInDETC[k] = 2.0; in dml20_ModeSupportAndSystemConfigurationFull()
3393 locals->BytePerPixelInDETY[k] = 4.0 / 3; in dml20_ModeSupportAndSystemConfigurationFull()
3394 locals->BytePerPixelInDETC[k] = 8.0 / 3; in dml20_ModeSupportAndSystemConfigurationFull()
3396 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_ModeSupportAndSystemConfigurationFull()
3397 locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportWidth[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3399 locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportHeight[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3402 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3403 …locals->ReadBandwidthLuma[k] = locals->SwathWidthYSingleDPP[k] * dml_ceil(locals->BytePerPixelInDE… in dml20_ModeSupportAndSystemConfigurationFull()
3404 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3405 …locals->ReadBandwidthChroma[k] = locals->SwathWidthYSingleDPP[k] / 2 * dml_ceil(locals->BytePerPix… in dml20_ModeSupportAndSystemConfigurationFull()
3406 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k] / 2.0; in dml20_ModeSupportAndSystemConfigurationFull()
3407 locals->ReadBandwidth[k] = locals->ReadBandwidthLuma[k] + locals->ReadBandwidthChroma[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3409 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3410 if (mode_lib->vba.WritebackEnable[k] == true in dml20_ModeSupportAndSystemConfigurationFull()
3411 && mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in dml20_ModeSupportAndSystemConfigurationFull()
3412 locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3413 * mode_lib->vba.WritebackDestinationHeight[k] in dml20_ModeSupportAndSystemConfigurationFull()
3414 / (mode_lib->vba.WritebackSourceHeight[k] in dml20_ModeSupportAndSystemConfigurationFull()
3415 * mode_lib->vba.HTotal[k] in dml20_ModeSupportAndSystemConfigurationFull()
3416 / mode_lib->vba.PixelClock[k]) * 4.0; in dml20_ModeSupportAndSystemConfigurationFull()
3417 } else if (mode_lib->vba.WritebackEnable[k] == true in dml20_ModeSupportAndSystemConfigurationFull()
3418 && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { in dml20_ModeSupportAndSystemConfigurationFull()
3419 locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3420 * mode_lib->vba.WritebackDestinationHeight[k] in dml20_ModeSupportAndSystemConfigurationFull()
3421 / (mode_lib->vba.WritebackSourceHeight[k] in dml20_ModeSupportAndSystemConfigurationFull()
3422 * mode_lib->vba.HTotal[k] in dml20_ModeSupportAndSystemConfigurationFull()
3423 / mode_lib->vba.PixelClock[k]) * 3.0; in dml20_ModeSupportAndSystemConfigurationFull()
3424 } else if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
3425 locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3426 * mode_lib->vba.WritebackDestinationHeight[k] in dml20_ModeSupportAndSystemConfigurationFull()
3427 / (mode_lib->vba.WritebackSourceHeight[k] in dml20_ModeSupportAndSystemConfigurationFull()
3428 * mode_lib->vba.HTotal[k] in dml20_ModeSupportAndSystemConfigurationFull()
3429 / mode_lib->vba.PixelClock[k]) * 1.5; in dml20_ModeSupportAndSystemConfigurationFull()
3431 locals->WriteBandwidth[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
3435 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3436 if (mode_lib->vba.DCCEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
3499 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3500 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
3501 if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in dml20_ModeSupportAndSystemConfigurationFull()
3502 if (locals->WriteBandwidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3509 if (locals->WriteBandwidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3537 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3538 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
3539 if (mode_lib->vba.ActiveWritebacksPerPlane[k] == 0) in dml20_ModeSupportAndSystemConfigurationFull()
3540 mode_lib->vba.ActiveWritebacksPerPlane[k] = 1; in dml20_ModeSupportAndSystemConfigurationFull()
3543 + mode_lib->vba.ActiveWritebacksPerPlane[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3550 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3551 if (mode_lib->vba.WritebackEnable[k] == true in dml20_ModeSupportAndSystemConfigurationFull()
3553 && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { in dml20_ModeSupportAndSystemConfigurationFull()
3560 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3561 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
3563 && (mode_lib->vba.WritebackHRatio[k] != 1.0 in dml20_ModeSupportAndSystemConfigurationFull()
3564 || mode_lib->vba.WritebackVRatio[k] != 1.0)) { in dml20_ModeSupportAndSystemConfigurationFull()
3567 if (mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackMaxHSCLRatio in dml20_ModeSupportAndSystemConfigurationFull()
3568 || mode_lib->vba.WritebackVRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3570 || mode_lib->vba.WritebackHRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3572 || mode_lib->vba.WritebackVRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3574 || mode_lib->vba.WritebackLumaHTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3576 || mode_lib->vba.WritebackLumaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3578 || mode_lib->vba.WritebackHRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3579 > mode_lib->vba.WritebackLumaHTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3580 || mode_lib->vba.WritebackVRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3581 > mode_lib->vba.WritebackLumaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3582 || (mode_lib->vba.WritebackLumaHTaps[k] > 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
3583 && ((mode_lib->vba.WritebackLumaHTaps[k] % 2) in dml20_ModeSupportAndSystemConfigurationFull()
3585 || (mode_lib->vba.WritebackPixelFormat[k] != dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
3586 && (mode_lib->vba.WritebackChromaHTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3588 || mode_lib->vba.WritebackChromaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3591 * mode_lib->vba.WritebackHRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3592 > mode_lib->vba.WritebackChromaHTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3594 * mode_lib->vba.WritebackVRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3595 > mode_lib->vba.WritebackChromaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3596 || (mode_lib->vba.WritebackChromaHTaps[k] > 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
3597 && ((mode_lib->vba.WritebackChromaHTaps[k] % 2) == 1))))) { in dml20_ModeSupportAndSystemConfigurationFull()
3600 if (mode_lib->vba.WritebackVRatio[k] < 1.0) { in dml20_ModeSupportAndSystemConfigurationFull()
3602 dml_max(1.0 - 2.0 / dml_ceil(1.0 / mode_lib->vba.WritebackVRatio[k], 1.0), 0.0); in dml20_ModeSupportAndSystemConfigurationFull()
3606 if ((mode_lib->vba.WritebackPixelFormat[k] == dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
3607 && mode_lib->vba.WritebackLumaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3611 / mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3613 || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 in dml20_ModeSupportAndSystemConfigurationFull()
3614 && mode_lib->vba.WritebackLumaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3616 * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3618 || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 in dml20_ModeSupportAndSystemConfigurationFull()
3619 && mode_lib->vba.WritebackLumaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3622 / mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3626 if (2.0 * mode_lib->vba.WritebackVRatio[k] < 1) { in dml20_ModeSupportAndSystemConfigurationFull()
3631 if ((mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 in dml20_ModeSupportAndSystemConfigurationFull()
3632 && mode_lib->vba.WritebackChromaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3634 * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3636 || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 in dml20_ModeSupportAndSystemConfigurationFull()
3637 && mode_lib->vba.WritebackChromaVTaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3640 / mode_lib->vba.WritebackDestinationWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3649 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3650 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
3655 mode_lib->vba.WritebackPixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
3656 mode_lib->vba.PixelClock[k], in dml20_ModeSupportAndSystemConfigurationFull()
3657 mode_lib->vba.WritebackHRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
3658 mode_lib->vba.WritebackVRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
3659 mode_lib->vba.WritebackLumaHTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
3660 mode_lib->vba.WritebackLumaVTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
3661 mode_lib->vba.WritebackChromaHTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
3662 mode_lib->vba.WritebackChromaVTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
3663 mode_lib->vba.WritebackDestinationWidth[k], in dml20_ModeSupportAndSystemConfigurationFull()
3664 mode_lib->vba.HTotal[k], in dml20_ModeSupportAndSystemConfigurationFull()
3668 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3669 if (mode_lib->vba.HRatio[k] > 1.0) { in dml20_ModeSupportAndSystemConfigurationFull()
3670 locals->PSCL_FACTOR[k] = dml_min( in dml20_ModeSupportAndSystemConfigurationFull()
3673 * mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3675 mode_lib->vba.htaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3679 locals->PSCL_FACTOR[k] = dml_min( in dml20_ModeSupportAndSystemConfigurationFull()
3683 if (locals->BytePerPixelInDETC[k] == 0.0) { in dml20_ModeSupportAndSystemConfigurationFull()
3684 locals->PSCL_FACTOR_CHROMA[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
3685 locals->MinDPPCLKUsingSingleDPP[k] = in dml20_ModeSupportAndSystemConfigurationFull()
3686 mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
3688 mode_lib->vba.vtaps[k] / 6.0 in dml20_ModeSupportAndSystemConfigurationFull()
3691 mode_lib->vba.HRatio[k]), in dml20_ModeSupportAndSystemConfigurationFull()
3692 mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3693 * mode_lib->vba.VRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3694 / locals->PSCL_FACTOR[k], in dml20_ModeSupportAndSystemConfigurationFull()
3696 if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0) in dml20_ModeSupportAndSystemConfigurationFull()
3697 && locals->MinDPPCLKUsingSingleDPP[k] in dml20_ModeSupportAndSystemConfigurationFull()
3698 < 2.0 * mode_lib->vba.PixelClock[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
3699 locals->MinDPPCLKUsingSingleDPP[k] = 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
3700 * mode_lib->vba.PixelClock[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3703 if (mode_lib->vba.HRatio[k] / 2.0 > 1.0) { in dml20_ModeSupportAndSystemConfigurationFull()
3704 locals->PSCL_FACTOR_CHROMA[k] = in dml20_ModeSupportAndSystemConfigurationFull()
3708 * mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3711 mode_lib->vba.HTAPsChroma[k] in dml20_ModeSupportAndSystemConfigurationFull()
3715 locals->PSCL_FACTOR_CHROMA[k] = dml_min( in dml20_ModeSupportAndSystemConfigurationFull()
3719 locals->MinDPPCLKUsingSingleDPP[k] = in dml20_ModeSupportAndSystemConfigurationFull()
3720 mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
3722 mode_lib->vba.vtaps[k] / 6.0 in dml20_ModeSupportAndSystemConfigurationFull()
3725 mode_lib->vba.HRatio[k]), in dml20_ModeSupportAndSystemConfigurationFull()
3726 mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3727 * mode_lib->vba.VRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3728 / locals->PSCL_FACTOR[k], in dml20_ModeSupportAndSystemConfigurationFull()
3729 mode_lib->vba.VTAPsChroma[k] in dml20_ModeSupportAndSystemConfigurationFull()
3733 mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3735 mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3736 * mode_lib->vba.VRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3738 / locals->PSCL_FACTOR_CHROMA[k], in dml20_ModeSupportAndSystemConfigurationFull()
3740 if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0 in dml20_ModeSupportAndSystemConfigurationFull()
3741 || mode_lib->vba.HTAPsChroma[k] > 6.0 in dml20_ModeSupportAndSystemConfigurationFull()
3742 || mode_lib->vba.VTAPsChroma[k] > 6.0) in dml20_ModeSupportAndSystemConfigurationFull()
3743 && locals->MinDPPCLKUsingSingleDPP[k] in dml20_ModeSupportAndSystemConfigurationFull()
3744 < 2.0 * mode_lib->vba.PixelClock[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
3745 locals->MinDPPCLKUsingSingleDPP[k] = 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
3746 * mode_lib->vba.PixelClock[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3750 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3752 mode_lib->vba.SourcePixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
3753 mode_lib->vba.SurfaceTiling[k], in dml20_ModeSupportAndSystemConfigurationFull()
3754 dml_ceil(locals->BytePerPixelInDETY[k], 1.0), in dml20_ModeSupportAndSystemConfigurationFull()
3755 dml_ceil(locals->BytePerPixelInDETC[k], 2.0), in dml20_ModeSupportAndSystemConfigurationFull()
3756 &locals->Read256BlockHeightY[k], in dml20_ModeSupportAndSystemConfigurationFull()
3757 &locals->Read256BlockHeightC[k], in dml20_ModeSupportAndSystemConfigurationFull()
3758 &locals->Read256BlockWidthY[k], in dml20_ModeSupportAndSystemConfigurationFull()
3759 &locals->Read256BlockWidthC[k]); in dml20_ModeSupportAndSystemConfigurationFull()
3760 if (mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_ModeSupportAndSystemConfigurationFull()
3761 locals->MaxSwathHeightY[k] = locals->Read256BlockHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3762 locals->MaxSwathHeightC[k] = locals->Read256BlockHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3764 locals->MaxSwathHeightY[k] = locals->Read256BlockWidthY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3765 locals->MaxSwathHeightC[k] = locals->Read256BlockWidthC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3767 if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20_ModeSupportAndSystemConfigurationFull()
3768 || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
3769 || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 in dml20_ModeSupportAndSystemConfigurationFull()
3770 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16 in dml20_ModeSupportAndSystemConfigurationFull()
3771 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_8)) { in dml20_ModeSupportAndSystemConfigurationFull()
3772 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml20_ModeSupportAndSystemConfigurationFull()
3773 || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 in dml20_ModeSupportAndSystemConfigurationFull()
3774 && (mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3776 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3778 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3780 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3782 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3784 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3786 || mode_lib->vba.SurfaceTiling[k] in dml20_ModeSupportAndSystemConfigurationFull()
3788 && mode_lib->vba.SourceScan[k] == dm_horz)) { in dml20_ModeSupportAndSystemConfigurationFull()
3789 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3791 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k] in dml20_ModeSupportAndSystemConfigurationFull()
3794 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3796 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20_ModeSupportAndSystemConfigurationFull()
3797 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3798 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3799 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 in dml20_ModeSupportAndSystemConfigurationFull()
3800 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_ModeSupportAndSystemConfigurationFull()
3801 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k] in dml20_ModeSupportAndSystemConfigurationFull()
3803 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3804 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 in dml20_ModeSupportAndSystemConfigurationFull()
3805 && mode_lib->vba.SourceScan[k] == dm_horz) { in dml20_ModeSupportAndSystemConfigurationFull()
3806 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k] in dml20_ModeSupportAndSystemConfigurationFull()
3808 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3810 locals->MinSwathHeightY[k] = locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3811 locals->MinSwathHeightC[k] = locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3814 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml20_ModeSupportAndSystemConfigurationFull()
3823 / (locals->BytePerPixelInDETY[k] in dml20_ModeSupportAndSystemConfigurationFull()
3824 * locals->MinSwathHeightY[k] in dml20_ModeSupportAndSystemConfigurationFull()
3825 + locals->BytePerPixelInDETC[k] in dml20_ModeSupportAndSystemConfigurationFull()
3827 * locals->MinSwathHeightC[k])); in dml20_ModeSupportAndSystemConfigurationFull()
3828 if (locals->BytePerPixelInDETC[k] == 0.0) { in dml20_ModeSupportAndSystemConfigurationFull()
3831 * dml_max(mode_lib->vba.HRatio[k], 1.0) in dml20_ModeSupportAndSystemConfigurationFull()
3832 / mode_lib->vba.LBBitPerPixel[k] in dml20_ModeSupportAndSystemConfigurationFull()
3833 / (mode_lib->vba.vtaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3836 mode_lib->vba.VRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
3845 mode_lib->vba.HRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
3847 / mode_lib->vba.LBBitPerPixel[k] in dml20_ModeSupportAndSystemConfigurationFull()
3848 / (mode_lib->vba.vtaps[k] in dml20_ModeSupportAndSystemConfigurationFull()
3851 mode_lib->vba.VRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
3857 mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3860 / mode_lib->vba.LBBitPerPixel[k] in dml20_ModeSupportAndSystemConfigurationFull()
3861 / (mode_lib->vba.VTAPsChroma[k] in dml20_ModeSupportAndSystemConfigurationFull()
3864 mode_lib->vba.VRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
3870 locals->MaximumSwathWidth[k] = dml_min( in dml20_ModeSupportAndSystemConfigurationFull()
3884 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3886 mode_lib->vba.PixelClock[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) in dml20_ModeSupportAndSystemConfigurationFull()
3890 mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
3893 mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 in dml20_ModeSupportAndSystemConfigurationFull()
3897 mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 in dml20_ModeSupportAndSystemConfigurationFull()
3900 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_disabled; in dml20_ModeSupportAndSystemConfigurationFull()
3904 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_2to1; in dml20_ModeSupportAndSystemConfigurationFull()
3906 … } else if (locals->HActive[k] > DCN20_MAX_420_IMAGE_WIDTH && locals->OutputFormat[k] == dm_420) { in dml20_ModeSupportAndSystemConfigurationFull()
3907 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_2to1; in dml20_ModeSupportAndSystemConfigurationFull()
3912 …if (locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 1… in dml20_ModeSupportAndSystemConfigurationFull()
3913 && locals->SwathWidthYSingleDPP[k] <= locals->MaximumSwathWidth[k] in dml20_ModeSupportAndSystemConfigurationFull()
3914 && locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_disabled) { in dml20_ModeSupportAndSystemConfigurationFull()
3915 locals->NoOfDPP[i][j][k] = 1; in dml20_ModeSupportAndSystemConfigurationFull()
3916 locals->RequiredDPPCLK[i][j][k] = in dml20_ModeSupportAndSystemConfigurationFull()
3917 …locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0… in dml20_ModeSupportAndSystemConfigurationFull()
3919 locals->NoOfDPP[i][j][k] = 2; in dml20_ModeSupportAndSystemConfigurationFull()
3920 locals->RequiredDPPCLK[i][j][k] = in dml20_ModeSupportAndSystemConfigurationFull()
3921 …locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0… in dml20_ModeSupportAndSystemConfigurationFull()
3926 …if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKD… in dml20_ModeSupportAndSystemConfigurationFull()
3933 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) in dml20_ModeSupportAndSystemConfigurationFull()
3934 …ls->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
3943 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_ModeSupportAndSystemConfigurationFull()
3944 …if (locals->ReadBandwidth[k] > BWOfNonSplitPlaneOfMaximumBandwidth && locals->NoOfDPP[i][j][k] == … in dml20_ModeSupportAndSystemConfigurationFull()
3945 BWOfNonSplitPlaneOfMaximumBandwidth = locals->ReadBandwidth[k]; in dml20_ModeSupportAndSystemConfigurationFull()
3946 NumberOfNonSplitPlaneOfMaximumBandwidth = k; in dml20_ModeSupportAndSystemConfigurationFull()
3959 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
3960 locals->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_disabled; in dml20_ModeSupportAndSystemConfigurationFull()
3961 if (locals->SwathWidthYSingleDPP[k] <= locals->MaximumSwathWidth[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
3962 locals->NoOfDPP[i][j][k] = 1; in dml20_ModeSupportAndSystemConfigurationFull()
3963 locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] in dml20_ModeSupportAndSystemConfigurationFull()
3966 locals->NoOfDPP[i][j][k] = 2; in dml20_ModeSupportAndSystemConfigurationFull()
3967 locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] in dml20_ModeSupportAndSystemConfigurationFull()
3972 mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
3976 mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
3982 …if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDP… in dml20_ModeSupportAndSystemConfigurationFull()
3988 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) in dml20_ModeSupportAndSystemConfigurationFull()
3989 …ls->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4004 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4005 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml20_ModeSupportAndSystemConfigurationFull()
4006 …if (dml_min(locals->SwathWidthYSingleDPP[k], dml_round(mode_lib->vba.HActive[k] / 2.0 * mode_lib->… in dml20_ModeSupportAndSystemConfigurationFull()
4007 > locals->MaximumSwathWidth[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
4011 if (locals->SwathWidthYSingleDPP[k] / 2.0 > locals->MaximumSwathWidth[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
4030 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4031 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_ModeSupportAndSystemConfigurationFull()
4044 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4045 if (!(mode_lib->vba.DSCInputBitPerComponent[k] == 12.0 in dml20_ModeSupportAndSystemConfigurationFull()
4046 || mode_lib->vba.DSCInputBitPerComponent[k] == 10.0 in dml20_ModeSupportAndSystemConfigurationFull()
4047 || mode_lib->vba.DSCInputBitPerComponent[k] == 8.0)) { in dml20_ModeSupportAndSystemConfigurationFull()
4052 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4053 locals->RequiresDSC[i][k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4054 locals->RequiresFEC[i][k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4055 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_ModeSupportAndSystemConfigurationFull()
4056 if (mode_lib->vba.Output[k] == dm_hdmi) { in dml20_ModeSupportAndSystemConfigurationFull()
4057 locals->RequiresDSC[i][k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4058 locals->RequiresFEC[i][k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4059 locals->OutputBppPerState[i][k] = TruncToValidBPP( in dml20_ModeSupportAndSystemConfigurationFull()
4060 dml_min(600.0, mode_lib->vba.PHYCLKPerState[i]) / mode_lib->vba.PixelClockBackEnd[k] * 24, in dml20_ModeSupportAndSystemConfigurationFull()
4062 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4063 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4064 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4065 } else if (mode_lib->vba.Output[k] == dm_dp in dml20_ModeSupportAndSystemConfigurationFull()
4066 || mode_lib->vba.Output[k] == dm_edp) { in dml20_ModeSupportAndSystemConfigurationFull()
4067 if (mode_lib->vba.Output[k] == dm_edp) { in dml20_ModeSupportAndSystemConfigurationFull()
4076 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20_ModeSupportAndSystemConfigurationFull()
4078 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4079 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4080 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4083 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20_ModeSupportAndSystemConfigurationFull()
4085 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4086 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4087 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4088 if (mode_lib->vba.DSCEnabled[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4089 locals->RequiresDSC[i][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4090 if (mode_lib->vba.Output[k] == dm_dp) { in dml20_ModeSupportAndSystemConfigurationFull()
4091 locals->RequiresFEC[i][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4093 locals->RequiresFEC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4097 locals->RequiresDSC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4098 locals->RequiresFEC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4100 locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; in dml20_ModeSupportAndSystemConfigurationFull()
4105 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20_ModeSupportAndSystemConfigurationFull()
4107 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4108 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4109 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4112 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20_ModeSupportAndSystemConfigurationFull()
4114 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4115 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4116 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4117 if (mode_lib->vba.DSCEnabled[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4118 locals->RequiresDSC[i][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4119 if (mode_lib->vba.Output[k] == dm_dp) { in dml20_ModeSupportAndSystemConfigurationFull()
4120 locals->RequiresFEC[i][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4122 locals->RequiresFEC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4126 locals->RequiresDSC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4127 locals->RequiresFEC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4129 locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; in dml20_ModeSupportAndSystemConfigurationFull()
4136 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20_ModeSupportAndSystemConfigurationFull()
4138 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4139 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4140 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4143 * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, in dml20_ModeSupportAndSystemConfigurationFull()
4145 mode_lib->vba.Output[k], in dml20_ModeSupportAndSystemConfigurationFull()
4146 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4147 mode_lib->vba.DSCInputBitPerComponent[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4148 if (mode_lib->vba.DSCEnabled[k] == true || mode_lib->vba.Outbpp == BPP_INVALID) { in dml20_ModeSupportAndSystemConfigurationFull()
4149 locals->RequiresDSC[i][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4150 if (mode_lib->vba.Output[k] == dm_dp) { in dml20_ModeSupportAndSystemConfigurationFull()
4151 locals->RequiresFEC[i][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4153 locals->RequiresFEC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4157 locals->RequiresDSC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4158 locals->RequiresFEC[i][k] = false; in dml20_ModeSupportAndSystemConfigurationFull()
4160 locals->OutputBppPerState[i][k] = in dml20_ModeSupportAndSystemConfigurationFull()
4165 locals->OutputBppPerState[i][k] = BPP_BLENDED_PIPE; in dml20_ModeSupportAndSystemConfigurationFull()
4171 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4172 if (!mode_lib->vba.skip_dio_check[k] in dml20_ModeSupportAndSystemConfigurationFull()
4173 && (locals->OutputBppPerState[i][k] == BPP_INVALID in dml20_ModeSupportAndSystemConfigurationFull()
4174 || (mode_lib->vba.OutputFormat[k] == dm_420 in dml20_ModeSupportAndSystemConfigurationFull()
4175 && mode_lib->vba.Interlace[k] == true in dml20_ModeSupportAndSystemConfigurationFull()
4182 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4184 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_ModeSupportAndSystemConfigurationFull()
4185 if ((mode_lib->vba.Output[k] == dm_dp in dml20_ModeSupportAndSystemConfigurationFull()
4186 || mode_lib->vba.Output[k] == dm_edp)) { in dml20_ModeSupportAndSystemConfigurationFull()
4187 if (mode_lib->vba.OutputFormat[k] == dm_420 in dml20_ModeSupportAndSystemConfigurationFull()
4188 || mode_lib->vba.OutputFormat[k] in dml20_ModeSupportAndSystemConfigurationFull()
4194 if (locals->RequiresDSC[i][k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4195 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml20_ModeSupportAndSystemConfigurationFull()
4196 if (mode_lib->vba.PixelClockBackEnd[k] / 6.0 / mode_lib->vba.DSCFormatFactor in dml20_ModeSupportAndSystemConfigurationFull()
4202 if (mode_lib->vba.PixelClockBackEnd[k] / 3.0 / mode_lib->vba.DSCFormatFactor in dml20_ModeSupportAndSystemConfigurationFull()
4216 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4217 if (locals->RequiresDSC[i][k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4218 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml20_ModeSupportAndSystemConfigurationFull()
4234 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4235 if (mode_lib->vba.BlendingAndTiming[k] != k) { in dml20_ModeSupportAndSystemConfigurationFull()
4237 } else if (locals->RequiresDSC[i][k] == 0 in dml20_ModeSupportAndSystemConfigurationFull()
4238 || locals->RequiresDSC[i][k] == false) { in dml20_ModeSupportAndSystemConfigurationFull()
4240 } else if (mode_lib->vba.PixelClockBackEnd[k] > 3200.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4242 mode_lib->vba.PixelClockBackEnd[k] / 400.0, in dml20_ModeSupportAndSystemConfigurationFull()
4244 } else if (mode_lib->vba.PixelClockBackEnd[k] > 1360.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4246 } else if (mode_lib->vba.PixelClockBackEnd[k] > 680.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4248 } else if (mode_lib->vba.PixelClockBackEnd[k] > 340.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4253 if (locals->OutputBppPerState[i][k] == BPP_BLENDED_PIPE in dml20_ModeSupportAndSystemConfigurationFull()
4254 || locals->OutputBppPerState[i][k] == BPP_INVALID) { in dml20_ModeSupportAndSystemConfigurationFull()
4257 mode_lib->vba.bpp = locals->OutputBppPerState[i][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4259 if (locals->RequiresDSC[i][k] == true && mode_lib->vba.bpp != 0.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4260 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_disabled) { in dml20_ModeSupportAndSystemConfigurationFull()
4261 locals->DSCDelayPerState[i][k] = in dml20_ModeSupportAndSystemConfigurationFull()
4263 mode_lib->vba.DSCInputBitPerComponent[k], in dml20_ModeSupportAndSystemConfigurationFull()
4266 mode_lib->vba.HActive[k] in dml20_ModeSupportAndSystemConfigurationFull()
4270 mode_lib->vba.OutputFormat[k]) in dml20_ModeSupportAndSystemConfigurationFull()
4272 mode_lib->vba.OutputFormat[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4274 locals->DSCDelayPerState[i][k] = in dml20_ModeSupportAndSystemConfigurationFull()
4276 mode_lib->vba.DSCInputBitPerComponent[k], in dml20_ModeSupportAndSystemConfigurationFull()
4278 dml_ceil(mode_lib->vba.HActive[k] / mode_lib->vba.slices, 1.0), in dml20_ModeSupportAndSystemConfigurationFull()
4280 mode_lib->vba.OutputFormat[k]) in dml20_ModeSupportAndSystemConfigurationFull()
4281 + dscComputeDelay(mode_lib->vba.OutputFormat[k])); in dml20_ModeSupportAndSystemConfigurationFull()
4283 locals->DSCDelayPerState[i][k] = in dml20_ModeSupportAndSystemConfigurationFull()
4284 … locals->DSCDelayPerState[i][k] * mode_lib->vba.PixelClock[k] / mode_lib->vba.PixelClockBackEnd[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4286 locals->DSCDelayPerState[i][k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
4289 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4292 if (mode_lib->vba.BlendingAndTiming[k] == m && locals->RequiresDSC[i][m] == true) in dml20_ModeSupportAndSystemConfigurationFull()
4293 locals->DSCDelayPerState[i][k] = locals->DSCDelayPerState[i][m]; in dml20_ModeSupportAndSystemConfigurationFull()
4302 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4303 if (locals->ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) in dml20_ModeSupportAndSystemConfigurationFull()
4304 …->SwathWidthYPerState[i][j][k] = dml_min(locals->SwathWidthYSingleDPP[k], dml_round(locals->HActiv… in dml20_ModeSupportAndSystemConfigurationFull()
4306 … locals->SwathWidthYPerState[i][j][k] = locals->SwathWidthYSingleDPP[k] / locals->NoOfDPP[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4307 …WidthGranularityY = 256 / dml_ceil(locals->BytePerPixelInDETY[k], 1) / locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4308 …locals->RoundedUpMaxSwathSizeBytesY = (dml_ceil(locals->SwathWidthYPerState[i][j][k] - 1, locals->… in dml20_ModeSupportAndSystemConfigurationFull()
4309 … + locals->SwathWidthGranularityY) * locals->BytePerPixelInDETY[k] * locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4310 if (locals->SourcePixelFormat[k] == dm_420_10) { in dml20_ModeSupportAndSystemConfigurationFull()
4313 if (locals->MaxSwathHeightC[k] > 0) { in dml20_ModeSupportAndSystemConfigurationFull()
4314 …hWidthGranularityC = 256 / dml_ceil(locals->BytePerPixelInDETC[k], 2) / locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4316 …locals->RoundedUpMaxSwathSizeBytesC = (dml_ceil(locals->SwathWidthYPerState[i][j][k] / 2 - 1, loca… in dml20_ModeSupportAndSystemConfigurationFull()
4317 + locals->SwathWidthGranularityC) * locals->BytePerPixelInDETC[k] * locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4319 if (locals->SourcePixelFormat[k] == dm_420_10) { in dml20_ModeSupportAndSystemConfigurationFull()
4326 locals->SwathHeightYPerState[i][j][k] = locals->MaxSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4327 locals->SwathHeightCPerState[i][j][k] = locals->MaxSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4329 locals->SwathHeightYPerState[i][j][k] = locals->MinSwathHeightY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4330 locals->SwathHeightCPerState[i][j][k] = locals->MinSwathHeightC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4333 if (locals->BytePerPixelInDETC[k] == 0) { in dml20_ModeSupportAndSystemConfigurationFull()
4334 …BufferSizeInKByte[0] * 1024 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4336 } else if (locals->SwathHeightYPerState[i][j][k] <= locals->SwathHeightCPerState[i][j][k]) { in dml20_ModeSupportAndSystemConfigurationFull()
4337 …cals->LinesInDETLuma = locals->DETBufferSizeInKByte[0] * 1024 / 2 / locals->BytePerPixelInDETY[k] / in dml20_ModeSupportAndSystemConfigurationFull()
4338 locals->SwathWidthYPerState[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4339 …rSizeInKByte[0] * 1024 / 2 / locals->BytePerPixelInDETC[k] / (locals->SwathWidthYPerState[i][j][k]… in dml20_ModeSupportAndSystemConfigurationFull()
4341 …zeInKByte[0] * 1024 * 2 / 3 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4342 …rSizeInKByte[0] * 1024 / 3 / locals->BytePerPixelInDETY[k] / (locals->SwathWidthYPerState[i][j][k]… in dml20_ModeSupportAndSystemConfigurationFull()
4346 …dml_floor(locals->LineBufferSize / locals->LBBitPerPixel[k] / (locals->SwathWidthYPerState[i][j][k] in dml20_ModeSupportAndSystemConfigurationFull()
4347 / dml_max(locals->HRatio[k], 1)), 1)) - (locals->vtaps[k] - 1); in dml20_ModeSupportAndSystemConfigurationFull()
4350 dml_floor(locals->LineBufferSize / locals->LBBitPerPixel[k] in dml20_ModeSupportAndSystemConfigurationFull()
4351 / (locals->SwathWidthYPerState[i][j][k] / 2 in dml20_ModeSupportAndSystemConfigurationFull()
4352 / dml_max(locals->HRatio[k] / 2, 1)), 1)) - (locals->VTAPsChroma[k] - 1); in dml20_ModeSupportAndSystemConfigurationFull()
4355 locals->LinesInDETLuma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETY[k] * in dml20_ModeSupportAndSystemConfigurationFull()
4356 locals->PSCL_FACTOR[k] / locals->ReturnBWPerState[i][0], in dml20_ModeSupportAndSystemConfigurationFull()
4358 locals->SwathHeightYPerState[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4362 locals->BytePerPixelInDETC[k] * in dml20_ModeSupportAndSystemConfigurationFull()
4363 locals->PSCL_FACTOR_CHROMA[k] / locals->ReturnBWPerState[i][0], in dml20_ModeSupportAndSystemConfigurationFull()
4365 locals->SwathHeightCPerState[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4370 if (locals->BytePerPixelInDETC[k] == 0) { in dml20_ModeSupportAndSystemConfigurationFull()
4371 …rgentLatencySupportUsPerState[i][j][k] = locals->EffectiveDETLBLinesLuma * (locals->HTotal[k] / lo… in dml20_ModeSupportAndSystemConfigurationFull()
4372 … / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * in dml20_ModeSupportAndSystemConfigurationFull()
4373 …dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i][0] / locals->NoOfDPP[i][… in dml20_ModeSupportAndSystemConfigurationFull()
4375 locals->UrgentLatencySupportUsPerState[i][j][k] = dml_min( in dml20_ModeSupportAndSystemConfigurationFull()
4376 locals->EffectiveDETLBLinesLuma * (locals->HTotal[k] / locals->PixelClock[k]) in dml20_ModeSupportAndSystemConfigurationFull()
4377 / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * in dml20_ModeSupportAndSystemConfigurationFull()
4378 …dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i][0] / locals->NoOfDPP[i][… in dml20_ModeSupportAndSystemConfigurationFull()
4379 …locals->EffectiveDETLBLinesChroma * (locals->HTotal[k] / locals->PixelClock[k]) / (locals->VRatio[ in dml20_ModeSupportAndSystemConfigurationFull()
4380 locals->EffectiveDETLBLinesChroma * locals->SwathWidthYPerState[i][j][k] / 2 * in dml20_ModeSupportAndSystemConfigurationFull()
4381 …dml_ceil(locals->BytePerPixelInDETC[k], 2) / (locals->ReturnBWPerState[i][0] / locals->NoOfDPP[i][… in dml20_ModeSupportAndSystemConfigurationFull()
4390 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4391 if (locals->UrgentLatencySupportUsPerState[i][j][k] < locals->UrgentLatency) in dml20_ModeSupportAndSystemConfigurationFull()
4402 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4403 if (locals->DCCEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4405 locals->TotalNumberOfDCCActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4415 for (k = 0; k < locals->NumberOfActivePlanes; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4416 locals->NoOfDPPThisState[k] = locals->NoOfDPP[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4417 locals->RequiredDPPCLKThisState[k] = locals->RequiredDPPCLK[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4418 locals->SwathHeightYThisState[k] = locals->SwathHeightYPerState[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4419 locals->SwathHeightCThisState[k] = locals->SwathHeightCPerState[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4420 locals->SwathWidthYThisState[k] = locals->SwathWidthYPerState[i][j][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4423 mode_lib->vba.PixelClock[k] / 16.0); in dml20_ModeSupportAndSystemConfigurationFull()
4424 if (mode_lib->vba.BytePerPixelInDETC[k] == 0.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4425 if (mode_lib->vba.VRatio[k] <= 1.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4431 mode_lib->vba.BytePerPixelInDETY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4434 * mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
4435 * mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
4436 / mode_lib->vba.NoOfDPP[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4443 mode_lib->vba.BytePerPixelInDETY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4446 * mode_lib->vba.PSCL_FACTOR[k] in dml20_ModeSupportAndSystemConfigurationFull()
4447 * mode_lib->vba.RequiredDPPCLK[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4450 if (mode_lib->vba.VRatio[k] <= 1.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4456 mode_lib->vba.BytePerPixelInDETY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4459 * mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
4460 * mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
4461 / mode_lib->vba.NoOfDPP[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4468 mode_lib->vba.BytePerPixelInDETY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4471 * mode_lib->vba.PSCL_FACTOR[k] in dml20_ModeSupportAndSystemConfigurationFull()
4472 * mode_lib->vba.RequiredDPPCLK[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4474 if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4480 mode_lib->vba.BytePerPixelInDETC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4483 * mode_lib->vba.HRatio[k] in dml20_ModeSupportAndSystemConfigurationFull()
4485 * mode_lib->vba.PixelClock[k] in dml20_ModeSupportAndSystemConfigurationFull()
4486 / mode_lib->vba.NoOfDPP[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4493 mode_lib->vba.BytePerPixelInDETC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4496 * mode_lib->vba.PSCL_FACTOR_CHROMA[k] in dml20_ModeSupportAndSystemConfigurationFull()
4497 * mode_lib->vba.RequiredDPPCLK[i][j][k]); in dml20_ModeSupportAndSystemConfigurationFull()
4501 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4504 mode_lib->vba.DCCEnable[k], in dml20_ModeSupportAndSystemConfigurationFull()
4505 mode_lib->vba.Read256BlockHeightY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4506 mode_lib->vba.Read256BlockWidthY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4507 mode_lib->vba.SourcePixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4508 mode_lib->vba.SurfaceTiling[k], in dml20_ModeSupportAndSystemConfigurationFull()
4509 dml_ceil(mode_lib->vba.BytePerPixelInDETY[k], 1.0), in dml20_ModeSupportAndSystemConfigurationFull()
4510 mode_lib->vba.SourceScan[k], in dml20_ModeSupportAndSystemConfigurationFull()
4511 mode_lib->vba.ViewportWidth[k], in dml20_ModeSupportAndSystemConfigurationFull()
4512 mode_lib->vba.ViewportHeight[k], in dml20_ModeSupportAndSystemConfigurationFull()
4513 mode_lib->vba.SwathWidthYPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4518 mode_lib->vba.PitchY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4519 mode_lib->vba.DCCMetaPitchY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4520 &mode_lib->vba.MacroTileWidthY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4523 &mode_lib->vba.PTEBufferSizeNotExceededY[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4524 &mode_lib->vba.dpte_row_height[k], in dml20_ModeSupportAndSystemConfigurationFull()
4525 &mode_lib->vba.meta_row_height[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4526 mode_lib->vba.PrefetchLinesY[0][0][k] = CalculatePrefetchSourceLines( in dml20_ModeSupportAndSystemConfigurationFull()
4528 mode_lib->vba.VRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4529 mode_lib->vba.vtaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
4530 mode_lib->vba.Interlace[k], in dml20_ModeSupportAndSystemConfigurationFull()
4532 mode_lib->vba.SwathHeightYPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4533 mode_lib->vba.ViewportYStartY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4534 &mode_lib->vba.PrefillY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4535 &mode_lib->vba.MaxNumSwY[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4536 if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20_ModeSupportAndSystemConfigurationFull()
4537 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
4538 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20_ModeSupportAndSystemConfigurationFull()
4539 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20_ModeSupportAndSystemConfigurationFull()
4540 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8)) { in dml20_ModeSupportAndSystemConfigurationFull()
4543 mode_lib->vba.DCCEnable[k], in dml20_ModeSupportAndSystemConfigurationFull()
4544 mode_lib->vba.Read256BlockHeightY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4545 mode_lib->vba.Read256BlockWidthY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4546 mode_lib->vba.SourcePixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4547 mode_lib->vba.SurfaceTiling[k], in dml20_ModeSupportAndSystemConfigurationFull()
4548 dml_ceil(mode_lib->vba.BytePerPixelInDETC[k], 2.0), in dml20_ModeSupportAndSystemConfigurationFull()
4549 mode_lib->vba.SourceScan[k], in dml20_ModeSupportAndSystemConfigurationFull()
4550 mode_lib->vba.ViewportWidth[k] / 2.0, in dml20_ModeSupportAndSystemConfigurationFull()
4551 mode_lib->vba.ViewportHeight[k] / 2.0, in dml20_ModeSupportAndSystemConfigurationFull()
4552 mode_lib->vba.SwathWidthYPerState[i][j][k] / 2.0, in dml20_ModeSupportAndSystemConfigurationFull()
4557 mode_lib->vba.PitchC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4559 &mode_lib->vba.MacroTileWidthC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4562 &mode_lib->vba.PTEBufferSizeNotExceededC[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4563 &mode_lib->vba.dpte_row_height_chroma[k], in dml20_ModeSupportAndSystemConfigurationFull()
4564 &mode_lib->vba.meta_row_height_chroma[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4565 mode_lib->vba.PrefetchLinesC[0][0][k] = CalculatePrefetchSourceLines( in dml20_ModeSupportAndSystemConfigurationFull()
4567 mode_lib->vba.VRatio[k] / 2.0, in dml20_ModeSupportAndSystemConfigurationFull()
4568 mode_lib->vba.VTAPsChroma[k], in dml20_ModeSupportAndSystemConfigurationFull()
4569 mode_lib->vba.Interlace[k], in dml20_ModeSupportAndSystemConfigurationFull()
4571 mode_lib->vba.SwathHeightCPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4572 mode_lib->vba.ViewportYStartC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4573 &mode_lib->vba.PrefillC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4574 &mode_lib->vba.MaxNumSwC[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4579 locals->PrefetchLinesC[0][0][k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
4580 locals->PTEBufferSizeNotExceededC[i][j][k] = true; in dml20_ModeSupportAndSystemConfigurationFull()
4583 locals->PDEAndMetaPTEBytesPerFrame[0][0][k] = in dml20_ModeSupportAndSystemConfigurationFull()
4585 locals->MetaRowBytes[0][0][k] = mode_lib->vba.MetaRowBytesY + mode_lib->vba.MetaRowBytesC; in dml20_ModeSupportAndSystemConfigurationFull()
4586 …locals->DPTEBytesPerRow[0][0][k] = mode_lib->vba.DPTEBytesPerRowY + mode_lib->vba.DPTEBytesPerRowC; in dml20_ModeSupportAndSystemConfigurationFull()
4590 mode_lib->vba.SourcePixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4591 mode_lib->vba.VRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4592 mode_lib->vba.DCCEnable[k], in dml20_ModeSupportAndSystemConfigurationFull()
4593 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20_ModeSupportAndSystemConfigurationFull()
4596 mode_lib->vba.meta_row_height[k], in dml20_ModeSupportAndSystemConfigurationFull()
4597 mode_lib->vba.meta_row_height_chroma[k], in dml20_ModeSupportAndSystemConfigurationFull()
4600 mode_lib->vba.dpte_row_height[k], in dml20_ModeSupportAndSystemConfigurationFull()
4601 mode_lib->vba.dpte_row_height_chroma[k], in dml20_ModeSupportAndSystemConfigurationFull()
4602 &mode_lib->vba.meta_row_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4603 &mode_lib->vba.dpte_row_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4604 &mode_lib->vba.qual_row_bw[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4622 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4623 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_ModeSupportAndSystemConfigurationFull()
4624 if (mode_lib->vba.WritebackEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4625 locals->WritebackDelay[i][k] = mode_lib->vba.WritebackLatency in dml20_ModeSupportAndSystemConfigurationFull()
4627 mode_lib->vba.WritebackPixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4628 mode_lib->vba.WritebackHRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4629 mode_lib->vba.WritebackVRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4630 mode_lib->vba.WritebackLumaHTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
4631 mode_lib->vba.WritebackLumaVTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
4632 mode_lib->vba.WritebackChromaHTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
4633 mode_lib->vba.WritebackChromaVTaps[k], in dml20_ModeSupportAndSystemConfigurationFull()
4634 mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; in dml20_ModeSupportAndSystemConfigurationFull()
4636 locals->WritebackDelay[i][k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
4639 if (mode_lib->vba.BlendingAndTiming[m] == k in dml20_ModeSupportAndSystemConfigurationFull()
4642 locals->WritebackDelay[i][k] = dml_max(locals->WritebackDelay[i][k], in dml20_ModeSupportAndSystemConfigurationFull()
4656 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4658 if (mode_lib->vba.BlendingAndTiming[k] == m) { in dml20_ModeSupportAndSystemConfigurationFull()
4659 locals->WritebackDelay[i][k] = locals->WritebackDelay[i][m]; in dml20_ModeSupportAndSystemConfigurationFull()
4663 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4664 for (m = 0; m < locals->NumberOfCursors[k]; m++) in dml20_ModeSupportAndSystemConfigurationFull()
4665 …locals->cursor_bw[k] = locals->NumberOfCursors[k] * locals->CursorWidth[k][m] * locals->CursorBPP[ in dml20_ModeSupportAndSystemConfigurationFull()
4666 / 8 / (locals->HTotal[k] / locals->PixelClock[k]) * locals->VRatio[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4669 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4670 locals->MaximumVStartup[0][0][k] = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] in dml20_ModeSupportAndSystemConfigurationFull()
4671 …ml_max(1.0, dml_ceil(locals->WritebackDelay[i][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.Pixel… in dml20_ModeSupportAndSystemConfigurationFull()
4684 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4686 if (mode_lib->vba.XFCEnabled[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4690 mode_lib->vba.VRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4691 locals->SwathWidthYPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4692 dml_ceil(locals->BytePerPixelInDETY[k], 1.0), in dml20_ModeSupportAndSystemConfigurationFull()
4693 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml20_ModeSupportAndSystemConfigurationFull()
4709 mode_lib->vba.IsErrorResult[i][j][k] = in dml20_ModeSupportAndSystemConfigurationFull()
4712 mode_lib->vba.RequiredDPPCLK[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4714 mode_lib->vba.PixelClock[k], in dml20_ModeSupportAndSystemConfigurationFull()
4716 mode_lib->vba.DSCDelayPerState[i][k], in dml20_ModeSupportAndSystemConfigurationFull()
4717 mode_lib->vba.NoOfDPP[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4718 mode_lib->vba.ScalerEnabled[k], in dml20_ModeSupportAndSystemConfigurationFull()
4719 mode_lib->vba.NumberOfCursors[k], in dml20_ModeSupportAndSystemConfigurationFull()
4726 mode_lib->vba.SwathWidthYPerState[i][j][k] in dml20_ModeSupportAndSystemConfigurationFull()
4727 / mode_lib->vba.HRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4728 mode_lib->vba.OutputFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4729 mode_lib->vba.VTotal[k] in dml20_ModeSupportAndSystemConfigurationFull()
4730 - mode_lib->vba.VActive[k], in dml20_ModeSupportAndSystemConfigurationFull()
4731 mode_lib->vba.HTotal[k], in dml20_ModeSupportAndSystemConfigurationFull()
4733 mode_lib->vba.MaximumVStartup[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4736 mode_lib->vba.DynamicMetadataEnable[k], in dml20_ModeSupportAndSystemConfigurationFull()
4737 mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], in dml20_ModeSupportAndSystemConfigurationFull()
4738 mode_lib->vba.DynamicMetadataTransmittedBytes[k], in dml20_ModeSupportAndSystemConfigurationFull()
4739 mode_lib->vba.DCCEnable[k], in dml20_ModeSupportAndSystemConfigurationFull()
4743 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4744 mode_lib->vba.MetaRowBytes[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4745 mode_lib->vba.DPTEBytesPerRow[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4746 mode_lib->vba.PrefetchLinesY[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4747 mode_lib->vba.SwathWidthYPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4748 mode_lib->vba.BytePerPixelInDETY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4749 mode_lib->vba.PrefillY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4750 mode_lib->vba.MaxNumSwY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4751 mode_lib->vba.PrefetchLinesC[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4752 mode_lib->vba.BytePerPixelInDETC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4753 mode_lib->vba.PrefillC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4754 mode_lib->vba.MaxNumSwC[k], in dml20_ModeSupportAndSystemConfigurationFull()
4755 mode_lib->vba.SwathHeightYPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4756 mode_lib->vba.SwathHeightCPerState[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4758 mode_lib->vba.XFCEnabled[k], in dml20_ModeSupportAndSystemConfigurationFull()
4760 mode_lib->vba.Interlace[k], in dml20_ModeSupportAndSystemConfigurationFull()
4764 &mode_lib->vba.LineTimesForPrefetch[k], in dml20_ModeSupportAndSystemConfigurationFull()
4765 &mode_lib->vba.PrefetchBW[k], in dml20_ModeSupportAndSystemConfigurationFull()
4766 &mode_lib->vba.LinesForMetaPTE[k], in dml20_ModeSupportAndSystemConfigurationFull()
4767 &mode_lib->vba.LinesForMetaAndDPTERow[k], in dml20_ModeSupportAndSystemConfigurationFull()
4768 &mode_lib->vba.VRatioPreY[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4769 &mode_lib->vba.VRatioPreC[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4770 &mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k], in dml20_ModeSupportAndSystemConfigurationFull()
4772 &mode_lib->vba.Tno_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4773 &mode_lib->vba.VUpdateOffsetPix[k], in dml20_ModeSupportAndSystemConfigurationFull()
4774 &mode_lib->vba.VUpdateWidthPix[k], in dml20_ModeSupportAndSystemConfigurationFull()
4775 &mode_lib->vba.VReadyOffsetPix[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4781 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4782 if (locals->PDEAndMetaPTEBytesPerFrame[0][0][k] == 0) in dml20_ModeSupportAndSystemConfigurationFull()
4783 locals->prefetch_vm_bw[k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4784 else if (locals->LinesForMetaPTE[k] > 0) in dml20_ModeSupportAndSystemConfigurationFull()
4785 locals->prefetch_vm_bw[k] = locals->PDEAndMetaPTEBytesPerFrame[0][0][k] in dml20_ModeSupportAndSystemConfigurationFull()
4786 / (locals->LinesForMetaPTE[k] * locals->HTotal[k] / locals->PixelClock[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4788 locals->prefetch_vm_bw[k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4791 if (locals->MetaRowBytes[0][0][k] + locals->DPTEBytesPerRow[0][0][k] == 0) in dml20_ModeSupportAndSystemConfigurationFull()
4792 locals->prefetch_row_bw[k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4793 else if (locals->LinesForMetaAndDPTERow[k] > 0) in dml20_ModeSupportAndSystemConfigurationFull()
4794 … locals->prefetch_row_bw[k] = (locals->MetaRowBytes[0][0][k] + locals->DPTEBytesPerRow[0][0][k]) in dml20_ModeSupportAndSystemConfigurationFull()
4795 / (locals->LinesForMetaAndDPTERow[k] * locals->HTotal[k] / locals->PixelClock[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4797 locals->prefetch_row_bw[k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
4802 …+ mode_lib->vba.cursor_bw[k] + mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.meta_row_bw[k] + mod… in dml20_ModeSupportAndSystemConfigurationFull()
4805 + mode_lib->vba.cursor_bw[k] in dml20_ModeSupportAndSystemConfigurationFull()
4807 mode_lib->vba.prefetch_vm_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4808 mode_lib->vba.prefetch_row_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4809 dml_max(mode_lib->vba.ReadBandwidth[k], in dml20_ModeSupportAndSystemConfigurationFull()
4810 mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k]) in dml20_ModeSupportAndSystemConfigurationFull()
4811 + mode_lib->vba.meta_row_bw[k] + mode_lib->vba.dpte_row_bw[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4822 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4823 if (locals->LineTimesForPrefetch[k] < 2.0 in dml20_ModeSupportAndSystemConfigurationFull()
4824 || locals->LinesForMetaPTE[k] >= 8.0 in dml20_ModeSupportAndSystemConfigurationFull()
4825 || locals->LinesForMetaAndDPTERow[k] >= 16.0 in dml20_ModeSupportAndSystemConfigurationFull()
4826 || mode_lib->vba.IsErrorResult[i][j][k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4831 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4832 if (locals->VRatioPreY[i][j][k] > 4.0 in dml20_ModeSupportAndSystemConfigurationFull()
4833 || locals->VRatioPreC[i][j][k] > 4.0 in dml20_ModeSupportAndSystemConfigurationFull()
4834 || mode_lib->vba.IsErrorResult[i][j][k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4845 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4848 - mode_lib->vba.cursor_bw[k] in dml20_ModeSupportAndSystemConfigurationFull()
4850 mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.qual_row_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4851 mode_lib->vba.PrefetchBW[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4853 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4854 mode_lib->vba.ImmediateFlipBytes[k] = 0.0; in dml20_ModeSupportAndSystemConfigurationFull()
4855 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20_ModeSupportAndSystemConfigurationFull()
4856 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20_ModeSupportAndSystemConfigurationFull()
4857 mode_lib->vba.ImmediateFlipBytes[k] = in dml20_ModeSupportAndSystemConfigurationFull()
4858 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[0][0][k] in dml20_ModeSupportAndSystemConfigurationFull()
4859 + mode_lib->vba.MetaRowBytes[0][0][k] in dml20_ModeSupportAndSystemConfigurationFull()
4860 + mode_lib->vba.DPTEBytesPerRow[0][0][k]; in dml20_ModeSupportAndSystemConfigurationFull()
4864 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4865 if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 in dml20_ModeSupportAndSystemConfigurationFull()
4866 && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { in dml20_ModeSupportAndSystemConfigurationFull()
4869 + mode_lib->vba.ImmediateFlipBytes[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4873 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4882 mode_lib->vba.SourcePixelFormat[k], in dml20_ModeSupportAndSystemConfigurationFull()
4883 mode_lib->vba.ImmediateFlipBytes[k], in dml20_ModeSupportAndSystemConfigurationFull()
4884 mode_lib->vba.HTotal[k] in dml20_ModeSupportAndSystemConfigurationFull()
4885 / mode_lib->vba.PixelClock[k], in dml20_ModeSupportAndSystemConfigurationFull()
4886 mode_lib->vba.VRatio[k], in dml20_ModeSupportAndSystemConfigurationFull()
4887 mode_lib->vba.Tno_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4888 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4889 mode_lib->vba.MetaRowBytes[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4890 mode_lib->vba.DPTEBytesPerRow[0][0][k], in dml20_ModeSupportAndSystemConfigurationFull()
4891 mode_lib->vba.DCCEnable[k], in dml20_ModeSupportAndSystemConfigurationFull()
4892 mode_lib->vba.dpte_row_height[k], in dml20_ModeSupportAndSystemConfigurationFull()
4893 mode_lib->vba.meta_row_height[k], in dml20_ModeSupportAndSystemConfigurationFull()
4894 mode_lib->vba.qual_row_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4895 &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], in dml20_ModeSupportAndSystemConfigurationFull()
4896 &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], in dml20_ModeSupportAndSystemConfigurationFull()
4897 &mode_lib->vba.final_flip_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4898 &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4901 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4904 + mode_lib->vba.cursor_bw[k] in dml20_ModeSupportAndSystemConfigurationFull()
4906 mode_lib->vba.prefetch_vm_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4907 mode_lib->vba.prefetch_row_bw[k], in dml20_ModeSupportAndSystemConfigurationFull()
4908 mode_lib->vba.final_flip_bw[k] in dml20_ModeSupportAndSystemConfigurationFull()
4910 mode_lib->vba.ReadBandwidth[k], in dml20_ModeSupportAndSystemConfigurationFull()
4911 mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k])); in dml20_ModeSupportAndSystemConfigurationFull()
4918 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4919 if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { in dml20_ModeSupportAndSystemConfigurationFull()
4931 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; k++) in dml20_ModeSupportAndSystemConfigurationFull()
4932 …otalVActiveRDBandwidth = mode_lib->vba.MaxTotalVActiveRDBandwidth + mode_lib->vba.ReadBandwidth[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4948 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4949 if (locals->PTEBufferSizeNotExceededY[i][j][k] == false in dml20_ModeSupportAndSystemConfigurationFull()
4950 || locals->PTEBufferSizeNotExceededC[i][j][k] == false) { in dml20_ModeSupportAndSystemConfigurationFull()
4958 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4960 if (mode_lib->vba.CursorWidth[k][j] > 0.0) { in dml20_ModeSupportAndSystemConfigurationFull()
4966 / (mode_lib->vba.CursorWidth[k][j] in dml20_ModeSupportAndSystemConfigurationFull()
4967 * mode_lib->vba.CursorBPP[k][j] in dml20_ModeSupportAndSystemConfigurationFull()
4970 * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in dml20_ModeSupportAndSystemConfigurationFull()
4971 / mode_lib->vba.VRatio[k] < mode_lib->vba.UrgentLatencyPixelDataOnly in dml20_ModeSupportAndSystemConfigurationFull()
4972 || (mode_lib->vba.CursorBPP[k][j] == 64.0 in dml20_ModeSupportAndSystemConfigurationFull()
4982 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
4983 locals->AlignedYPitch[k] = dml_ceil( in dml20_ModeSupportAndSystemConfigurationFull()
4984 dml_max(mode_lib->vba.PitchY[k], mode_lib->vba.ViewportWidth[k]), in dml20_ModeSupportAndSystemConfigurationFull()
4985 locals->MacroTileWidthY[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4986 if (locals->AlignedYPitch[k] > mode_lib->vba.PitchY[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
4989 if (mode_lib->vba.DCCEnable[k] == true) { in dml20_ModeSupportAndSystemConfigurationFull()
4990 locals->AlignedDCCMetaPitch[k] = dml_ceil( in dml20_ModeSupportAndSystemConfigurationFull()
4992 mode_lib->vba.DCCMetaPitchY[k], in dml20_ModeSupportAndSystemConfigurationFull()
4993 mode_lib->vba.ViewportWidth[k]), in dml20_ModeSupportAndSystemConfigurationFull()
4994 64.0 * locals->Read256BlockWidthY[k]); in dml20_ModeSupportAndSystemConfigurationFull()
4996 locals->AlignedDCCMetaPitch[k] = mode_lib->vba.DCCMetaPitchY[k]; in dml20_ModeSupportAndSystemConfigurationFull()
4998 if (locals->AlignedDCCMetaPitch[k] > mode_lib->vba.DCCMetaPitchY[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
5001 if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml20_ModeSupportAndSystemConfigurationFull()
5002 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml20_ModeSupportAndSystemConfigurationFull()
5003 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml20_ModeSupportAndSystemConfigurationFull()
5004 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml20_ModeSupportAndSystemConfigurationFull()
5005 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) { in dml20_ModeSupportAndSystemConfigurationFull()
5006 locals->AlignedCPitch[k] = dml_ceil( in dml20_ModeSupportAndSystemConfigurationFull()
5008 mode_lib->vba.PitchC[k], in dml20_ModeSupportAndSystemConfigurationFull()
5009 mode_lib->vba.ViewportWidth[k] / 2.0), in dml20_ModeSupportAndSystemConfigurationFull()
5010 locals->MacroTileWidthC[k]); in dml20_ModeSupportAndSystemConfigurationFull()
5012 locals->AlignedCPitch[k] = mode_lib->vba.PitchC[k]; in dml20_ModeSupportAndSystemConfigurationFull()
5014 if (locals->AlignedCPitch[k] > mode_lib->vba.PitchC[k]) { in dml20_ModeSupportAndSystemConfigurationFull()
5093 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
5094 mode_lib->vba.DPPPerPlane[k] = locals->NoOfDPP[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml20_ModeSupportAndSystemConfigurationFull()
5095 locals->DPPCLK[k] = locals->RequiredDPPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml20_ModeSupportAndSystemConfigurationFull()
5106 for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { in dml20_ModeSupportAndSystemConfigurationFull()
5107 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml20_ModeSupportAndSystemConfigurationFull()
5108 mode_lib->vba.ODMCombineEnabled[k] = in dml20_ModeSupportAndSystemConfigurationFull()
5109 locals->ODMCombineEnablePerState[mode_lib->vba.VoltageLevel][k]; in dml20_ModeSupportAndSystemConfigurationFull()
5111 mode_lib->vba.ODMCombineEnabled[k] = 0; in dml20_ModeSupportAndSystemConfigurationFull()
5113 mode_lib->vba.DSCEnabled[k] = in dml20_ModeSupportAndSystemConfigurationFull()
5114 locals->RequiresDSC[mode_lib->vba.VoltageLevel][k]; in dml20_ModeSupportAndSystemConfigurationFull()
5115 mode_lib->vba.OutputBpp[k] = in dml20_ModeSupportAndSystemConfigurationFull()
5116 locals->OutputBppPerState[mode_lib->vba.VoltageLevel][k]; in dml20_ModeSupportAndSystemConfigurationFull()