Lines Matching refs:k

62 	unsigned int j, k;  in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()  local
85 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
86 if (mode_lib->vba.WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
89 mode_lib->vba.WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
90 mode_lib->vba.PixelClock[k], mode_lib->vba.WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
91 mode_lib->vba.WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
92 mode_lib->vba.WritebackHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
93 mode_lib->vba.WritebackVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
94 mode_lib->vba.WritebackSourceWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
95 mode_lib->vba.WritebackDestinationWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
96 mode_lib->vba.HTotal[k], mode_lib->vba.WritebackLineBufferSize, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
103 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
104 if (mode_lib->vba.BlendingAndTiming[k] == k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
107 mode_lib->vba.ODMCombineEnabled[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
108 mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
116 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
117 dml32_CalculateSinglePipeDPPCLKAndSCLThroughput(mode_lib->vba.HRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
118 mode_lib->vba.HRatioChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
119 mode_lib->vba.VRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
120 mode_lib->vba.VRatioChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
123 mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
124 mode_lib->vba.SourcePixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
125 mode_lib->vba.htaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
126 mode_lib->vba.HTAPsChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
127 mode_lib->vba.vtaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
128 mode_lib->vba.VTAPsChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
131 &v->PSCL_THROUGHPUT_LUMA[k], &v->PSCL_THROUGHPUT_CHROMA[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
132 &v->DPPCLKUsingSingleDPP[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
140 for (k = 0; k < v->NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
141 v->DPPCLK_calculated[k] = v->DPPCLK[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
144 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
146 mode_lib->vba.SourcePixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
147 mode_lib->vba.SurfaceTiling[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
150 &v->BytePerPixelY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
151 &v->BytePerPixelC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
152 &v->BytePerPixelDETY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
153 &v->BytePerPixelDETC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
154 &v->BlockHeight256BytesY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
155 &v->BlockHeight256BytesC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
156 &v->BlockWidth256BytesY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
157 &v->BlockWidth256BytesC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
158 &v->BlockHeightY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
159 &v->BlockHeightC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
160 &v->BlockWidthY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
161 &v->BlockWidthC[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
205 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
206 v->ReadBandwidthSurfaceLuma[k] = v->SwathWidthSingleDPPY[k] * v->BytePerPixelY[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
207 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
208 v->ReadBandwidthSurfaceChroma[k] = v->SwathWidthSingleDPPC[k] * v->BytePerPixelC[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
209 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
210 * mode_lib->vba.VRatioChroma[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
213 __func__, k, v->ReadBandwidthSurfaceLuma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
215 __func__, k, v->ReadBandwidthSurfaceChroma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
335 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
336 if ((mode_lib->vba.BlendingAndTiming[k] != k) || !mode_lib->vba.DSCEnabled[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
337 v->DSCCLK_calculated[k] = 0.0; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
339 if (mode_lib->vba.OutputFormat[k] == dm_420) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
341 else if (mode_lib->vba.OutputFormat[k] == dm_444) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
343 else if (mode_lib->vba.OutputFormat[k] == dm_n422) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
347 if (mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_4to1) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
348 v->DSCCLK_calculated[k] = mode_lib->vba.PixelClockBackEnd[k] / 12 in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
351 else if (mode_lib->vba.ODMCombineEnabled[k] == dm_odm_combine_mode_2to1) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
352 v->DSCCLK_calculated[k] = mode_lib->vba.PixelClockBackEnd[k] / 6 in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
356 v->DSCCLK_calculated[k] = mode_lib->vba.PixelClockBackEnd[k] / 3 in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
363 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
364 v->DSCDelay[k] = dml32_DSCDelayRequirement(mode_lib->vba.DSCEnabled[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
365 mode_lib->vba.ODMCombineEnabled[k], mode_lib->vba.DSCInputBitPerComponent[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
366 mode_lib->vba.OutputBppPerState[mode_lib->vba.VoltageLevel][k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
367 mode_lib->vba.HActive[k], mode_lib->vba.HTotal[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
368 mode_lib->vba.NumberOfDSCSlices[k], mode_lib->vba.OutputFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
369 mode_lib->vba.Output[k], mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
370 mode_lib->vba.PixelClockBackEnd[k], mode_lib->vba.ip.dsc_delay_factor_wa); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
373 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
375 if (j != k && mode_lib->vba.BlendingAndTiming[k] == j && mode_lib->vba.DSCEnabled[j]) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
376 v->DSCDelay[k] = v->DSCDelay[j]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
379 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
380 v->ImmediateFlipSupportedSurface[k] = mode_lib->vba.ImmediateFlipSupport in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
381 && (mode_lib->vba.ImmediateFlipRequirement[k] != dm_immediate_flip_not_required); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
423 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
424 …sWatermarksAndPerformanceCalculation.SurfaceParameters[k].PixelClock = mode_lib->vba.PixelClock[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
425 …atermarksAndPerformanceCalculation.SurfaceParameters[k].DPPPerSurface = mode_lib->vba.DPPPerPlane[ in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
426 …ermarksAndPerformanceCalculation.SurfaceParameters[k].SourceRotation = mode_lib->vba.SourceRotatio… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
427 …ermarksAndPerformanceCalculation.SurfaceParameters[k].ViewportHeight = mode_lib->vba.ViewportHeigh… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
428 …sAndPerformanceCalculation.SurfaceParameters[k].ViewportHeightChroma = mode_lib->vba.ViewportHeigh… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
429 …termarksAndPerformanceCalculation.SurfaceParameters[k].BlockWidth256BytesY = v->BlockWidth256Bytes… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
430 …ermarksAndPerformanceCalculation.SurfaceParameters[k].BlockHeight256BytesY = v->BlockHeight256Byte… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
431 …termarksAndPerformanceCalculation.SurfaceParameters[k].BlockWidth256BytesC = v->BlockWidth256Bytes… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
432 …ermarksAndPerformanceCalculation.SurfaceParameters[k].BlockHeight256BytesC = v->BlockHeight256Byte… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
433 …ParametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].BlockWidthY = v->BlockWidthY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
434 …rametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].BlockHeightY = v->BlockHeightY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
435 …ParametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].BlockWidthC = v->BlockWidthC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
436 …rametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].BlockHeightC = v->BlockHeightC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
437 …atermarksAndPerformanceCalculation.SurfaceParameters[k].InterlaceEnable = mode_lib->vba.Interlace[ in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
438 …arametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].HTotal = mode_lib->vba.HTotal[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
439 …ersWatermarksAndPerformanceCalculation.SurfaceParameters[k].DCCEnable = mode_lib->vba.DCCEnable[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
440 …arksAndPerformanceCalculation.SurfaceParameters[k].SourcePixelFormat = mode_lib->vba.SourcePixelFo… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
441 …termarksAndPerformanceCalculation.SurfaceParameters[k].SurfaceTiling = mode_lib->vba.SurfaceTiling… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
442 …metersWatermarksAndPerformanceCalculation.SurfaceParameters[k].BytePerPixelY = v->BytePerPixelY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
443 …metersWatermarksAndPerformanceCalculation.SurfaceParameters[k].BytePerPixelC = v->BytePerPixelC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
444 …leepPrefetchParametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].ProgressiveToInterl… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
445 …arametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].VRatio = mode_lib->vba.VRatio[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
446 …atermarksAndPerformanceCalculation.SurfaceParameters[k].VRatioChroma = mode_lib->vba.VRatioChroma[ in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
447 …hParametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].VTaps = mode_lib->vba.vtaps[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
448 …WatermarksAndPerformanceCalculation.SurfaceParameters[k].VTapsChroma = mode_lib->vba.VTAPsChroma[k in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
449 …arametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].PitchY = mode_lib->vba.PitchY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
450 …termarksAndPerformanceCalculation.SurfaceParameters[k].DCCMetaPitchY = mode_lib->vba.DCCMetaPitchY… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
451 …arametersWatermarksAndPerformanceCalculation.SurfaceParameters[k].PitchC = mode_lib->vba.PitchC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
452 …termarksAndPerformanceCalculation.SurfaceParameters[k].DCCMetaPitchC = mode_lib->vba.DCCMetaPitchC… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
453 …rksAndPerformanceCalculation.SurfaceParameters[k].ViewportStationary = mode_lib->vba.ViewportStati… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
454 …ermarksAndPerformanceCalculation.SurfaceParameters[k].ViewportXStart = mode_lib->vba.ViewportXStar… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
455 …ermarksAndPerformanceCalculation.SurfaceParameters[k].ViewportYStart = mode_lib->vba.ViewportYStar… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
456 …rmarksAndPerformanceCalculation.SurfaceParameters[k].ViewportXStartC = mode_lib->vba.ViewportXStar… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
457 …rmarksAndPerformanceCalculation.SurfaceParameters[k].ViewportYStartC = mode_lib->vba.ViewportYStar… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
458 …AndPerformanceCalculation.SurfaceParameters[k].FORCE_ONE_ROW_FOR_FRAME = mode_lib->vba.ForceOneRow… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
459 …atermarksAndPerformanceCalculation.SurfaceParameters[k].SwathHeightY = mode_lib->vba.SwathHeightY[ in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
460 …atermarksAndPerformanceCalculation.SurfaceParameters[k].SwathHeightC = mode_lib->vba.SwathHeightC[ in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
572 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
573 mode_lib->vba.TotalActiveDPP = mode_lib->vba.TotalActiveDPP + mode_lib->vba.DPPPerPlane[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
574 if (mode_lib->vba.DCCEnable[k]) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
576 + mode_lib->vba.DPPPerPlane[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
599 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
600 if (mode_lib->vba.BlendingAndTiming[k] == k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
601 if (mode_lib->vba.WritebackEnable[k] == true) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
602 v->WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib->vba.WritebackLatency in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
604 mode_lib->vba.WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
605 mode_lib->vba.WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
606 mode_lib->vba.WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
607 mode_lib->vba.WritebackVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
608 mode_lib->vba.WritebackDestinationWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
609 mode_lib->vba.WritebackDestinationHeight[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
610 mode_lib->vba.WritebackSourceHeight[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
611 mode_lib->vba.HTotal[k]) / mode_lib->vba.DISPCLK; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
613 v->WritebackDelay[mode_lib->vba.VoltageLevel][k] = 0; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
615 if (mode_lib->vba.BlendingAndTiming[j] == k && in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
617 v->WritebackDelay[mode_lib->vba.VoltageLevel][k] = in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
618 dml_max(v->WritebackDelay[mode_lib->vba.VoltageLevel][k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
628 mode_lib->vba.HTotal[k]) / mode_lib->vba.DISPCLK); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
634 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
636 if (mode_lib->vba.BlendingAndTiming[k] == j) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
637 v->WritebackDelay[mode_lib->vba.VoltageLevel][k] = in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
648 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
649 dml32_CalculateUrgentBurstFactor(mode_lib->vba.UsesMALLForPStateChange[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
650 v->swath_width_luma_ub[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
651 v->swath_width_chroma_ub[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
652 mode_lib->vba.SwathHeightY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
653 mode_lib->vba.SwathHeightC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
654 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
657 mode_lib->vba.CursorWidth[k][0], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
658 mode_lib->vba.CursorBPP[k][0], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
659 mode_lib->vba.VRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
660 mode_lib->vba.VRatioChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
661 v->BytePerPixelDETY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
662 v->BytePerPixelDETC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
663 mode_lib->vba.DETBufferSizeY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
664 mode_lib->vba.DETBufferSizeC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
667 &v->UrgBurstFactorCursor[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
668 &v->UrgBurstFactorLuma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
669 &v->UrgBurstFactorChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
670 &v->NoUrgentLatencyHiding[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
672k] = mode_lib->vba.NumberOfCursors[k] * mode_lib->vba.CursorWidth[k][0] * mode_lib->vba.CursorBPP[ in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
695 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
696 v->MaxVStartupLines[k] = ((mode_lib->vba.Interlace[k] && in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
698 dml_floor((mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]) / 2.0, 1.0) : in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
699 mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]) - dml_max(1.0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
700 dml_ceil((double) v->WritebackDelay[mode_lib->vba.VoltageLevel][k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
701 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1)); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
704 if (v->MaxVStartupLines[k] > 1023) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
705 v->MaxVStartupLines[k] = 1023; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
708 dml_print("DML::%s: k=%d MaxVStartupLines = %d\n", __func__, k, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
709 dml_print("DML::%s: k=%d VoltageLevel = %d\n", __func__, k, mode_lib->vba.VoltageLevel); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
711 k, v->WritebackDelay[mode_lib->vba.VoltageLevel][k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
716 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
717 v->MaximumMaxVStartupLines = dml_max(v->MaximumMaxVStartupLines, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
721 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
723 || (mode_lib->vba.ImmediateFlipRequirement[k] == dm_immediate_flip_required); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
748 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
754 mode_lib->vba.UsesMALLForPStateChange[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
756 mode_lib->vba.DRRDisplay[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
763 …SleepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.Dppclk = mode_lib->vba.DPPCLK[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
765 …fetchParametersWatermarksAndPerformanceCalculation.myPipe.PixelClock = mode_lib->vba.PixelClock[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
767 …hParametersWatermarksAndPerformanceCalculation.myPipe.DPPPerSurface = mode_lib->vba.DPPPerPlane[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
768 …arametersWatermarksAndPerformanceCalculation.myPipe.ScalerEnabled = mode_lib->vba.ScalerEnabled[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
769 …ametersWatermarksAndPerformanceCalculation.myPipe.SourceRotation = mode_lib->vba.SourceRotation[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
770 …rametersWatermarksAndPerformanceCalculation.myPipe.BlockWidth256BytesY = v->BlockWidth256BytesY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
771 …metersWatermarksAndPerformanceCalculation.myPipe.BlockHeight256BytesY = v->BlockHeight256BytesY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
772 …rametersWatermarksAndPerformanceCalculation.myPipe.BlockWidth256BytesC = v->BlockWidth256BytesC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
773 …metersWatermarksAndPerformanceCalculation.myPipe.BlockHeight256BytesC = v->BlockHeight256BytesC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
774 …hParametersWatermarksAndPerformanceCalculation.myPipe.InterlaceEnable = mode_lib->vba.Interlace[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
775 …etersWatermarksAndPerformanceCalculation.myPipe.NumberOfCursors = mode_lib->vba.NumberOfCursors[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
776 …rmarksAndPerformanceCalculation.myPipe.VBlank = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
777 …SleepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.HTotal = mode_lib->vba.HTotal[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
778 …eepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.HActive = mode_lib->vba.HActive[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
779 …refetchParametersWatermarksAndPerformanceCalculation.myPipe.DCCEnable = mode_lib->vba.DCCEnable[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
780 …hParametersWatermarksAndPerformanceCalculation.myPipe.ODMMode = mode_lib->vba.ODMCombineEnabled[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
781 …sWatermarksAndPerformanceCalculation.myPipe.SourcePixelFormat = mode_lib->vba.SourcePixelFormat[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
782 …epPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.BytePerPixelY = v->BytePerPixelY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
783 …epPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.BytePerPixelC = v->BytePerPixelC[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
785 v->ErrorResult[k] = dml32_CalculatePrefetchSchedule( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
787 k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
790 v->DSCDelay[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
791 (unsigned int) (v->SwathWidthY[k] / v->HRatio[k]), in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
792 dml_min(v->VStartupLines, v->MaxVStartupLines[k]), in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
793 v->MaxVStartupLines[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
797 v->PDEAndMetaPTEBytesFrame[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
798 v->MetaRowByte[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
799 v->PixelPTEBytesPerRow[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
800 v->PrefetchSourceLinesY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
801 v->SwathWidthY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
802 v->VInitPreFillY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
803 v->MaxNumSwathY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
804 v->PrefetchSourceLinesC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
805 v->SwathWidthC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
806 v->VInitPreFillC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
807 v->MaxNumSwathC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
808 v->swath_width_luma_ub[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
809 v->swath_width_chroma_ub[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
810 v->SwathHeightY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
811 v->SwathHeightC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
819 &v->DSTXAfterScaler[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
820 &v->DSTYAfterScaler[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
821 &v->DestinationLinesForPrefetch[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
822 &v->PrefetchBandwidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
823 &v->DestinationLinesToRequestVMInVBlank[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
824 &v->DestinationLinesToRequestRowInVBlank[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
825 &v->VRatioPrefetchY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
826 &v->VRatioPrefetchC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
827 &v->RequiredPrefetchPixDataBWLuma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
828 &v->RequiredPrefetchPixDataBWChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
829 &v->NotEnoughTimeForDynamicMetadata[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
830 &v->Tno_bw[k], &v->prefetch_vmrow_bw[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
831 &v->Tdmdl_vm[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
832 &v->Tdmdl[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
833 &v->TSetup[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
834 &v->VUpdateOffsetPix[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
835 &v->VUpdateWidthPix[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
836 &v->VReadyOffsetPix[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
840 __func__, k, mode_lib->vba.ErrorResult[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
842 v->VStartup[k] = dml_min(v->VStartupLines, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
845 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
846 dml32_CalculateUrgentBurstFactor(mode_lib->vba.UsesMALLForPStateChange[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
847 v->swath_width_luma_ub[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
848 v->swath_width_chroma_ub[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
849 mode_lib->vba.SwathHeightY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
850 mode_lib->vba.SwathHeightC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
851 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
854 mode_lib->vba.CursorWidth[k][0], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
855 mode_lib->vba.CursorBPP[k][0], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
856 v->VRatioPrefetchY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
857 v->VRatioPrefetchC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
858 v->BytePerPixelDETY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
859 v->BytePerPixelDETC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
860 mode_lib->vba.DETBufferSizeY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
861 mode_lib->vba.DETBufferSizeC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
863 &v->UrgBurstFactorCursorPre[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
864 &v->UrgBurstFactorLumaPre[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
865 &v->UrgBurstFactorChromaPre[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
866 &v->NoUrgentLatencyHidingPre[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
868 …v->cursor_bw_pre[k] = mode_lib->vba.NumberOfCursors[k] * mode_lib->vba.CursorWidth[k][0] * mode_li… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
869 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * v->VRatioPrefetchY[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
872 dml_print("DML::%s: k=%0d DPPPerSurface=%d\n", __func__, k, mode_lib->vba.DPPPerPlane[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
873 dml_print("DML::%s: k=%0d UrgBurstFactorLuma=%f\n", __func__, k, v->UrgBurstFactorLuma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
874 dml_print("DML::%s: k=%0d UrgBurstFactorChroma=%f\n", __func__, k, v->UrgBurstFactorChroma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
875 dml_print("DML::%s: k=%0d UrgBurstFactorLumaPre=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
876 v->UrgBurstFactorLumaPre[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
877 dml_print("DML::%s: k=%0d UrgBurstFactorChromaPre=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
878 v->UrgBurstFactorChromaPre[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
880 dml_print("DML::%s: k=%0d VRatioPrefetchY=%f\n", __func__, k, v->VRatioPrefetchY[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
881 dml_print("DML::%s: k=%0d VRatioY=%f\n", __func__, k, mode_lib->vba.VRatio[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
883 dml_print("DML::%s: k=%0d prefetch_vmrow_bw=%f\n", __func__, k, v->prefetch_vmrow_bw[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
884 dml_print("DML::%s: k=%0d ReadBandwidthSurfaceLuma=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
885 v->ReadBandwidthSurfaceLuma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
886 dml_print("DML::%s: k=%0d ReadBandwidthSurfaceChroma=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
887 v->ReadBandwidthSurfaceChroma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
888 dml_print("DML::%s: k=%0d cursor_bw=%f\n", __func__, k, v->cursor_bw[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
889 dml_print("DML::%s: k=%0d meta_row_bw=%f\n", __func__, k, v->meta_row_bw[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
890 dml_print("DML::%s: k=%0d dpte_row_bw=%f\n", __func__, k, v->dpte_row_bw[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
891 dml_print("DML::%s: k=%0d RequiredPrefetchPixDataBWLuma=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
892 v->RequiredPrefetchPixDataBWLuma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
893 dml_print("DML::%s: k=%0d RequiredPrefetchPixDataBWChroma=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
894 v->RequiredPrefetchPixDataBWChroma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
895 dml_print("DML::%s: k=%0d cursor_bw_pre=%f\n", __func__, k, v->cursor_bw_pre[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
896 dml_print("DML::%s: k=%0d MaxTotalRDBandwidthNoUrgentBurst=%f\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
899 if (v->DestinationLinesForPrefetch[k] < 2) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
902 if (v->VRatioPrefetchY[k] > v->MaxVRatioPre in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
903 || v->VRatioPrefetchC[k] > v->MaxVRatioPre) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
958 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
959 …CLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.dummy_unit_vector[k] = 1.0; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
995 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
996 if (v->ErrorResult[k] == true || v->NotEnoughTimeForDynamicMetadata[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1020 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1021 if (mode_lib->vba.ImmediateFlipRequirement[k] != dm_immediate_flip_not_required) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1023 + mode_lib->vba.DPPPerPlane[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1024 * (v->PDEAndMetaPTEBytesFrame[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1025 + v->MetaRowByte[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1026 if (v->use_one_row_for_frame_flip[k][0][0]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1029 + 2 * v->PixelPTEBytesPerRow[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1033 + v->PixelPTEBytesPerRow[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1037 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1046 v->PDEAndMetaPTEBytesFrame[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1047 v->MetaRowByte[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1048 v->PixelPTEBytesPerRow[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1051 mode_lib->vba.SourcePixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1052 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1053 mode_lib->vba.VRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1054 mode_lib->vba.VRatioChroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1055 v->Tno_bw[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1056 mode_lib->vba.DCCEnable[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1057 v->dpte_row_height[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1058 v->meta_row_height[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1059 v->dpte_row_height_chroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1060 v->meta_row_height_chroma[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1061 v->Use_One_Row_For_Frame_Flip[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1064 &v->DestinationLinesToRequestVMInImmediateFlip[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1065 &v->DestinationLinesToRequestRowInImmediateFlip[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1066 &v->final_flip_bw[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1067 &v->ImmediateFlipSupportedForPipe[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1124 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1125 …mode_lib->vba.ImmediateFlipRequirement[k] != dm_immediate_flip_not_required && v->ImmediateFlipSup… in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1128 dml_print("DML::%s: Pipe %0d not supporting iflip\n", __func__, k); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1143 for (uint k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1144 …::%s: ImmediateFlipRequirement[%d] = %d\n", __func__, k, mode_lib->vba.ImmediateFlipRequirement[k in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1235 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1236 if (mode_lib->vba.WritebackEnable[k] == true) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1237 v->WritebackAllowDRAMClockChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1238 v->VStartup[k] * mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1240 v->WritebackAllowFCLKChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1241 v->VStartup[k] * mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1244 v->WritebackAllowDRAMClockChangeEndPosition[k] = 0; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1245 v->WritebackAllowFCLKChangeEndPosition[k] = 0; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1366 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1368 v->MinTTUVBlank[k] = dml_max4(v->Watermark.DRAMClockChangeWatermark, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1373 v->MinTTUVBlank[k] = dml_max3(v->Watermark.FCLKChangeWatermark, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1377 v->MinTTUVBlank[k] = dml_max(v->Watermark.StutterEnterPlusExitWatermark, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1380 v->MinTTUVBlank[k] = v->Watermark.UrgentWatermark; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1382 if (!mode_lib->vba.DynamicMetadataEnable[k]) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1383 v->MinTTUVBlank[k] = mode_lib->vba.TCalc + v->MinTTUVBlank[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1387 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1389 dml_print("DML::%s: Calculate DCC configuration for surface k=%d\n", __func__, k); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1392 mode_lib->vba.DCCEnable[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1394 mode_lib->vba.SourcePixelFormat[k], mode_lib->vba.SurfaceWidthY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1395 mode_lib->vba.SurfaceWidthC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1396 mode_lib->vba.SurfaceHeightY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1397 mode_lib->vba.SurfaceHeightC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1399 v->BlockHeight256BytesY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1400 v->BlockHeight256BytesC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1401 mode_lib->vba.SurfaceTiling[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1402 v->BytePerPixelY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1403 v->BytePerPixelC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1404 v->BytePerPixelDETY[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1405 v->BytePerPixelDETC[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1406 (enum dm_rotation_angle) mode_lib->vba.SourceScan[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1408 &v->DCCYMaxUncompressedBlock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1409 &v->DCCCMaxUncompressedBlock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1410 &v->DCCYMaxCompressedBlock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1411 &v->DCCCMaxCompressedBlock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1412 &v->DCCYIndependentBlock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1413 &v->DCCCIndependentBlock[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1417 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1419 double Tvstartup_margin = (v->MaxVStartupLines[k] - v->VStartup[k]) * mode_lib->vba.HTotal[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1420 / mode_lib->vba.PixelClock[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1422 dml_print("DML::%s: k=%d, MinTTUVBlank = %f (before vstartup margin)\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1423 v->MinTTUVBlank[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1426 v->MinTTUVBlank[k] = v->MinTTUVBlank[k] + Tvstartup_margin; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1429 dml_print("DML::%s: k=%d, Tvstartup_margin = %f\n", __func__, k, Tvstartup_margin); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1430 dml_print("DML::%s: k=%d, MaxVStartupLines = %d\n", __func__, k, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1431 dml_print("DML::%s: k=%d, VStartup = %d\n", __func__, k, v->VStartup[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1432 dml_print("DML::%s: k=%d, MinTTUVBlank = %f\n", __func__, k, v->MinTTUVBlank[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1435 v->Tdmdl[k] = v->Tdmdl[k] + Tvstartup_margin; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1436 if (mode_lib->vba.DynamicMetadataEnable[k] && mode_lib->vba.DynamicMetadataVMEnabled) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1437 v->Tdmdl_vm[k] = v->Tdmdl_vm[k] + Tvstartup_margin; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1439 isInterlaceTiming = (mode_lib->vba.Interlace[k] && in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1442 v->MIN_DST_Y_NEXT_START[k] = ((isInterlaceTiming ? dml_floor((mode_lib->vba.VTotal[k] - in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1443 mode_lib->vba.VFrontPorch[k]) / 2.0, 1.0) : in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1444 mode_lib->vba.VTotal[k]) - mode_lib->vba.VFrontPorch[k]) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1446 dml_ceil(v->WritebackDelay[mode_lib->vba.VoltageLevel][k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1447 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1.0)) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1448 + dml_floor(4.0 * v->TSetup[k] / (mode_lib->vba.HTotal[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1449 / mode_lib->vba.PixelClock[k]), 1.0) / 4.0; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1451 v->VStartup[k] = (isInterlaceTiming ? (2 * v->MaxVStartupLines[k]) : v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1453 if (((v->VUpdateOffsetPix[k] + v->VUpdateWidthPix[k] + v->VReadyOffsetPix[k]) in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1454 / mode_lib->vba.HTotal[k]) <= (isInterlaceTiming ? dml_floor((mode_lib->vba.VTotal[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1455 - mode_lib->vba.VActive[k] - mode_lib->vba.VFrontPorch[k] - v->VStartup[k]) / 2.0, 1.0) : in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1456 (int) (mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1457 - mode_lib->vba.VFrontPorch[k] - v->VStartup[k]))) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1458 v->VREADY_AT_OR_AFTER_VSYNC[k] = true; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1460 v->VREADY_AT_OR_AFTER_VSYNC[k] = false; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1463 dml_print("DML::%s: k=%d, VStartup = %d (max)\n", __func__, k, v->VStartup[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1464 dml_print("DML::%s: k=%d, VUpdateOffsetPix = %d\n", __func__, k, v->VUpdateOffsetPix[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1465 dml_print("DML::%s: k=%d, VUpdateWidthPix = %d\n", __func__, k, v->VUpdateWidthPix[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1466 dml_print("DML::%s: k=%d, VReadyOffsetPix = %d\n", __func__, k, v->VReadyOffsetPix[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1467 dml_print("DML::%s: k=%d, HTotal = %d\n", __func__, k, mode_lib->vba.HTotal[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1468 dml_print("DML::%s: k=%d, VTotal = %d\n", __func__, k, mode_lib->vba.VTotal[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1469 dml_print("DML::%s: k=%d, VActive = %d\n", __func__, k, mode_lib->vba.VActive[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1470 dml_print("DML::%s: k=%d, VFrontPorch = %d\n", __func__, k, mode_lib->vba.VFrontPorch[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1471 dml_print("DML::%s: k=%d, VStartup = %d\n", __func__, k, v->VStartup[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1472 dml_print("DML::%s: k=%d, TSetup = %f\n", __func__, k, v->TSetup[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1473 dml_print("DML::%s: k=%d, MIN_DST_Y_NEXT_START = %f\n", __func__, k, v->MIN_DST_Y_NEXT_START[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1474 dml_print("DML::%s: k=%d, VREADY_AT_OR_AFTER_VSYNC = %d\n", __func__, k, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1475 v->VREADY_AT_OR_AFTER_VSYNC[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1481 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1482 if (mode_lib->vba.WritebackEnable[k] == true in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1483 && mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1484 WRBandwidth = mode_lib->vba.WritebackDestinationWidth[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1485 * mode_lib->vba.WritebackDestinationHeight[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1486 / (mode_lib->vba.HTotal[k] * mode_lib->vba.WritebackSourceHeight[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1487 / mode_lib->vba.PixelClock[k]) * 4; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1488 } else if (mode_lib->vba.WritebackEnable[k] == true) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1489 WRBandwidth = mode_lib->vba.WritebackDestinationWidth[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1490 * mode_lib->vba.WritebackDestinationHeight[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1491 / (mode_lib->vba.HTotal[k] * mode_lib->vba.WritebackSourceHeight[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1492 / mode_lib->vba.PixelClock[k]) * 8; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1498 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1499 v->TotalDataReadBandwidth = v->TotalDataReadBandwidth + v->ReadBandwidthSurfaceLuma[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1500 + v->ReadBandwidthSurfaceChroma[k]; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1503 __func__, k, v->TotalDataReadBandwidth); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1505 __func__, k, v->ReadBandwidthSurfaceLuma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1507 __func__, k, v->ReadBandwidthSurfaceChroma[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1728 unsigned int k, m; in dml32_ModeSupportAndSystemConfigurationFull() local
1748 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1749 if (mode_lib->vba.ScalerEnabled[k] == false in dml32_ModeSupportAndSystemConfigurationFull()
1750 && ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml32_ModeSupportAndSystemConfigurationFull()
1751 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml32_ModeSupportAndSystemConfigurationFull()
1752 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml32_ModeSupportAndSystemConfigurationFull()
1753 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml32_ModeSupportAndSystemConfigurationFull()
1754 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 in dml32_ModeSupportAndSystemConfigurationFull()
1755 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe in dml32_ModeSupportAndSystemConfigurationFull()
1756 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe_alpha) in dml32_ModeSupportAndSystemConfigurationFull()
1757 || mode_lib->vba.HRatio[k] != 1.0 || mode_lib->vba.htaps[k] != 1.0 in dml32_ModeSupportAndSystemConfigurationFull()
1758 || mode_lib->vba.VRatio[k] != 1.0 || mode_lib->vba.vtaps[k] != 1.0)) { in dml32_ModeSupportAndSystemConfigurationFull()
1760 …} else if (mode_lib->vba.vtaps[k] < 1.0 || mode_lib->vba.vtaps[k] > 8.0 || mode_lib->vba.htaps[k] … in dml32_ModeSupportAndSystemConfigurationFull()
1761 || mode_lib->vba.htaps[k] > 8.0 in dml32_ModeSupportAndSystemConfigurationFull()
1762 || (mode_lib->vba.htaps[k] > 1.0 && (mode_lib->vba.htaps[k] % 2) == 1) in dml32_ModeSupportAndSystemConfigurationFull()
1763 || mode_lib->vba.HRatio[k] > mode_lib->vba.MaxHSCLRatio in dml32_ModeSupportAndSystemConfigurationFull()
1764 || mode_lib->vba.VRatio[k] > mode_lib->vba.MaxVSCLRatio in dml32_ModeSupportAndSystemConfigurationFull()
1765 || mode_lib->vba.HRatio[k] > mode_lib->vba.htaps[k] in dml32_ModeSupportAndSystemConfigurationFull()
1766 || mode_lib->vba.VRatio[k] > mode_lib->vba.vtaps[k] in dml32_ModeSupportAndSystemConfigurationFull()
1767 || (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml32_ModeSupportAndSystemConfigurationFull()
1768 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml32_ModeSupportAndSystemConfigurationFull()
1769 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml32_ModeSupportAndSystemConfigurationFull()
1770 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml32_ModeSupportAndSystemConfigurationFull()
1771 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 in dml32_ModeSupportAndSystemConfigurationFull()
1772 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe in dml32_ModeSupportAndSystemConfigurationFull()
1773 && (mode_lib->vba.VTAPsChroma[k] < 1 in dml32_ModeSupportAndSystemConfigurationFull()
1774 || mode_lib->vba.VTAPsChroma[k] > 8 in dml32_ModeSupportAndSystemConfigurationFull()
1775 || mode_lib->vba.HTAPsChroma[k] < 1 in dml32_ModeSupportAndSystemConfigurationFull()
1776 || mode_lib->vba.HTAPsChroma[k] > 8 in dml32_ModeSupportAndSystemConfigurationFull()
1777 || (mode_lib->vba.HTAPsChroma[k] > 1 in dml32_ModeSupportAndSystemConfigurationFull()
1778 && mode_lib->vba.HTAPsChroma[k] % 2 in dml32_ModeSupportAndSystemConfigurationFull()
1780 || mode_lib->vba.HRatioChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
1782 || mode_lib->vba.VRatioChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
1784 || mode_lib->vba.HRatioChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
1785 > mode_lib->vba.HTAPsChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
1786 || mode_lib->vba.VRatioChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
1787 > mode_lib->vba.VTAPsChroma[k]))) { in dml32_ModeSupportAndSystemConfigurationFull()
1794 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1795 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear in dml32_ModeSupportAndSystemConfigurationFull()
1796 && (!(!IsVertical((enum dm_rotation_angle) mode_lib->vba.SourceScan[k])) in dml32_ModeSupportAndSystemConfigurationFull()
1797 || mode_lib->vba.DCCEnable[k] == true)) { in dml32_ModeSupportAndSystemConfigurationFull()
1802 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1804 mode_lib->vba.SourcePixelFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
1805 mode_lib->vba.SurfaceTiling[k], in dml32_ModeSupportAndSystemConfigurationFull()
1808 &mode_lib->vba.BytePerPixelY[k], in dml32_ModeSupportAndSystemConfigurationFull()
1809 &mode_lib->vba.BytePerPixelC[k], in dml32_ModeSupportAndSystemConfigurationFull()
1810 &mode_lib->vba.BytePerPixelInDETY[k], in dml32_ModeSupportAndSystemConfigurationFull()
1811 &mode_lib->vba.BytePerPixelInDETC[k], in dml32_ModeSupportAndSystemConfigurationFull()
1812 &mode_lib->vba.Read256BlockHeightY[k], in dml32_ModeSupportAndSystemConfigurationFull()
1813 &mode_lib->vba.Read256BlockHeightC[k], in dml32_ModeSupportAndSystemConfigurationFull()
1814 &mode_lib->vba.Read256BlockWidthY[k], in dml32_ModeSupportAndSystemConfigurationFull()
1815 &mode_lib->vba.Read256BlockWidthC[k], in dml32_ModeSupportAndSystemConfigurationFull()
1816 &mode_lib->vba.MacroTileHeightY[k], in dml32_ModeSupportAndSystemConfigurationFull()
1817 &mode_lib->vba.MacroTileHeightC[k], in dml32_ModeSupportAndSystemConfigurationFull()
1818 &mode_lib->vba.MacroTileWidthY[k], in dml32_ModeSupportAndSystemConfigurationFull()
1819 &mode_lib->vba.MacroTileWidthC[k]); in dml32_ModeSupportAndSystemConfigurationFull()
1823 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1824 if (!IsVertical(mode_lib->vba.SourceRotation[k])) { in dml32_ModeSupportAndSystemConfigurationFull()
1825 v->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportWidth[k]; in dml32_ModeSupportAndSystemConfigurationFull()
1826 v->SwathWidthCSingleDPP[k] = mode_lib->vba.ViewportWidthChroma[k]; in dml32_ModeSupportAndSystemConfigurationFull()
1828 v->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportHeight[k]; in dml32_ModeSupportAndSystemConfigurationFull()
1829 v->SwathWidthCSingleDPP[k] = mode_lib->vba.ViewportHeightChroma[k]; in dml32_ModeSupportAndSystemConfigurationFull()
1832 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1833 v->ReadBandwidthLuma[k] = v->SwathWidthYSingleDPP[k] * dml_ceil(v->BytePerPixelInDETY[k], 1.0) in dml32_ModeSupportAndSystemConfigurationFull()
1834 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; in dml32_ModeSupportAndSystemConfigurationFull()
1835 …v->ReadBandwidthChroma[k] = v->SwathWidthYSingleDPP[k] / 2 * dml_ceil(v->BytePerPixelInDETC[k], 2.… in dml32_ModeSupportAndSystemConfigurationFull()
1836 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k] in dml32_ModeSupportAndSystemConfigurationFull()
1839 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1840 …if (mode_lib->vba.WritebackEnable[k] == true && mode_lib->vba.WritebackPixelFormat[k] == dm_444_64… in dml32_ModeSupportAndSystemConfigurationFull()
1841 v->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml32_ModeSupportAndSystemConfigurationFull()
1842 * mode_lib->vba.WritebackDestinationHeight[k] in dml32_ModeSupportAndSystemConfigurationFull()
1843 / (mode_lib->vba.WritebackSourceHeight[k] * mode_lib->vba.HTotal[k] in dml32_ModeSupportAndSystemConfigurationFull()
1844 / mode_lib->vba.PixelClock[k]) * 8.0; in dml32_ModeSupportAndSystemConfigurationFull()
1845 } else if (mode_lib->vba.WritebackEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
1846 v->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] in dml32_ModeSupportAndSystemConfigurationFull()
1847 * mode_lib->vba.WritebackDestinationHeight[k] in dml32_ModeSupportAndSystemConfigurationFull()
1848 / (mode_lib->vba.WritebackSourceHeight[k] * mode_lib->vba.HTotal[k] in dml32_ModeSupportAndSystemConfigurationFull()
1849 / mode_lib->vba.PixelClock[k]) * 4.0; in dml32_ModeSupportAndSystemConfigurationFull()
1851 v->WriteBandwidth[k] = 0.0; in dml32_ModeSupportAndSystemConfigurationFull()
1858 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1859 if (mode_lib->vba.WritebackEnable[k] == true in dml32_ModeSupportAndSystemConfigurationFull()
1860 && (v->WriteBandwidth[k] in dml32_ModeSupportAndSystemConfigurationFull()
1870 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1871 if (mode_lib->vba.WritebackEnable[k] == true) in dml32_ModeSupportAndSystemConfigurationFull()
1880 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1881 if (mode_lib->vba.WritebackEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
1882 if (mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackMaxHSCLRatio in dml32_ModeSupportAndSystemConfigurationFull()
1883 || mode_lib->vba.WritebackVRatio[k] > mode_lib->vba.WritebackMaxVSCLRatio in dml32_ModeSupportAndSystemConfigurationFull()
1884 || mode_lib->vba.WritebackHRatio[k] < mode_lib->vba.WritebackMinHSCLRatio in dml32_ModeSupportAndSystemConfigurationFull()
1885 || mode_lib->vba.WritebackVRatio[k] < mode_lib->vba.WritebackMinVSCLRatio in dml32_ModeSupportAndSystemConfigurationFull()
1886 || mode_lib->vba.WritebackHTaps[k] > mode_lib->vba.WritebackMaxHSCLTaps in dml32_ModeSupportAndSystemConfigurationFull()
1887 || mode_lib->vba.WritebackVTaps[k] > mode_lib->vba.WritebackMaxVSCLTaps in dml32_ModeSupportAndSystemConfigurationFull()
1888 || mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackHTaps[k] in dml32_ModeSupportAndSystemConfigurationFull()
1889 || mode_lib->vba.WritebackVRatio[k] > mode_lib->vba.WritebackVTaps[k] in dml32_ModeSupportAndSystemConfigurationFull()
1890 || (mode_lib->vba.WritebackHTaps[k] > 2.0 in dml32_ModeSupportAndSystemConfigurationFull()
1891 && ((mode_lib->vba.WritebackHTaps[k] % 2) == 1))) { in dml32_ModeSupportAndSystemConfigurationFull()
1894 if (2.0 * mode_lib->vba.WritebackDestinationWidth[k] * (mode_lib->vba.WritebackVTaps[k] - 1) in dml32_ModeSupportAndSystemConfigurationFull()
1901 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1902 …2_CalculateSinglePipeDPPCLKAndSCLThroughput(mode_lib->vba.HRatio[k], mode_lib->vba.HRatioChroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
1903 mode_lib->vba.VRatio[k], mode_lib->vba.VRatioChroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
1905 mode_lib->vba.PixelClock[k], mode_lib->vba.SourcePixelFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
1906 mode_lib->vba.htaps[k], mode_lib->vba.HTAPsChroma[k], mode_lib->vba.vtaps[k], in dml32_ModeSupportAndSystemConfigurationFull()
1907 mode_lib->vba.VTAPsChroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
1909 &mode_lib->vba.PSCL_FACTOR[k], &mode_lib->vba.PSCL_FACTOR_CHROMA[k], in dml32_ModeSupportAndSystemConfigurationFull()
1910 &mode_lib->vba.MinDPPCLKUsingSingleDPP[k]); in dml32_ModeSupportAndSystemConfigurationFull()
1913 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
1915 if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { in dml32_ModeSupportAndSystemConfigurationFull()
1917 } else if (!IsVertical(mode_lib->vba.SourceRotation[k]) && v->BytePerPixelC[k] > 0 in dml32_ModeSupportAndSystemConfigurationFull()
1918 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe_alpha) { in dml32_ModeSupportAndSystemConfigurationFull()
1920 } else if (IsVertical(mode_lib->vba.SourceRotation[k]) && v->BytePerPixelC[k] > 0 in dml32_ModeSupportAndSystemConfigurationFull()
1921 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe_alpha) { in dml32_ModeSupportAndSystemConfigurationFull()
1923 } else if (mode_lib->vba.SourcePixelFormat[k] == dm_rgbe_alpha) { in dml32_ModeSupportAndSystemConfigurationFull()
1925 } else if (IsVertical(mode_lib->vba.SourceRotation[k]) && v->BytePerPixelY[k] == 8 && in dml32_ModeSupportAndSystemConfigurationFull()
1926 mode_lib->vba.DCCEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
1932 …if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 || mode_lib->vba.SourcePixelFormat[k] == dm_420… in dml32_ModeSupportAndSystemConfigurationFull()
1933 || mode_lib->vba.SourcePixelFormat[k] == dm_420_12) { in dml32_ModeSupportAndSystemConfigurationFull()
1939 * dml_max(mode_lib->vba.HRatio[k], 1.0) / mode_lib->vba.LBBitPerPixel[k] in dml32_ModeSupportAndSystemConfigurationFull()
1940 / (mode_lib->vba.vtaps[k] + dml_max(dml_ceil(mode_lib->vba.VRatio[k], 1.0) - 2, 0.0)); in dml32_ModeSupportAndSystemConfigurationFull()
1941 if (v->BytePerPixelC[k] == 0.0) { in dml32_ModeSupportAndSystemConfigurationFull()
1945 * dml_max(mode_lib->vba.HRatioChroma[k], 1.0) / mode_lib->vba.LBBitPerPixel[k] in dml32_ModeSupportAndSystemConfigurationFull()
1946 / (mode_lib->vba.VTAPsChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
1947 + dml_max(dml_ceil(mode_lib->vba.VRatioChroma[k], 1.0) - 2, in dml32_ModeSupportAndSystemConfigurationFull()
1950 …v->MaximumSwathWidthLuma[k] = dml_min(v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.Ma… in dml32_ModeSupportAndSystemConfigurationFull()
1952 …v->MaximumSwathWidthChroma[k] = dml_min(v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.… in dml32_ModeSupportAndSystemConfigurationFull()
2024 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2025 if (mode_lib->vba.MPCCombineUse[k] == dm_mpc_reduce_voltage_and_clocks) in dml32_ModeSupportAndSystemConfigurationFull()
2027 if (mode_lib->vba.MPCCombineUse[k] == dm_mpc_always_when_possible) in dml32_ModeSupportAndSystemConfigurationFull()
2040 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2043 mode_lib->vba.HActive[k], in dml32_ModeSupportAndSystemConfigurationFull()
2044 mode_lib->vba.OutputFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
2045 mode_lib->vba.Output[k], in dml32_ModeSupportAndSystemConfigurationFull()
2046 mode_lib->vba.ODMUse[k], in dml32_ModeSupportAndSystemConfigurationFull()
2052 mode_lib->vba.PixelClock[k], in dml32_ModeSupportAndSystemConfigurationFull()
2056 mode_lib->vba.NumberOfDSCSlices[k], in dml32_ModeSupportAndSystemConfigurationFull()
2066 mode_lib->vba.HActive[k], in dml32_ModeSupportAndSystemConfigurationFull()
2067 mode_lib->vba.OutputFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
2068 mode_lib->vba.Output[k], in dml32_ModeSupportAndSystemConfigurationFull()
2069 mode_lib->vba.ODMUse[k], in dml32_ModeSupportAndSystemConfigurationFull()
2075 mode_lib->vba.PixelClock[k], in dml32_ModeSupportAndSystemConfigurationFull()
2079 mode_lib->vba.NumberOfDSCSlices[k], in dml32_ModeSupportAndSystemConfigurationFull()
2092 (mode_lib->vba.BlendingAndTiming[k] == k), in dml32_ModeSupportAndSystemConfigurationFull()
2093 mode_lib->vba.Output[k], in dml32_ModeSupportAndSystemConfigurationFull()
2094 mode_lib->vba.OutputFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
2095 mode_lib->vba.HTotal[k], in dml32_ModeSupportAndSystemConfigurationFull()
2096 mode_lib->vba.HActive[k], in dml32_ModeSupportAndSystemConfigurationFull()
2097 mode_lib->vba.PixelClockBackEnd[k], in dml32_ModeSupportAndSystemConfigurationFull()
2098 mode_lib->vba.ForcedOutputLinkBPP[k], in dml32_ModeSupportAndSystemConfigurationFull()
2099 mode_lib->vba.DSCInputBitPerComponent[k], in dml32_ModeSupportAndSystemConfigurationFull()
2100 mode_lib->vba.NumberOfDSCSlices[k], in dml32_ModeSupportAndSystemConfigurationFull()
2101 mode_lib->vba.AudioSampleRate[k], in dml32_ModeSupportAndSystemConfigurationFull()
2102 mode_lib->vba.AudioSampleLayout[k], in dml32_ModeSupportAndSystemConfigurationFull()
2105 mode_lib->vba.DSCEnable[k], in dml32_ModeSupportAndSystemConfigurationFull()
2106 mode_lib->vba.OutputLinkDPLanes[k], in dml32_ModeSupportAndSystemConfigurationFull()
2107 mode_lib->vba.OutputLinkDPRate[k], in dml32_ModeSupportAndSystemConfigurationFull()
2110 &mode_lib->vba.RequiresDSC[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2111 &mode_lib->vba.RequiresFEC[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2112 &mode_lib->vba.OutputBppPerState[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2113 &mode_lib->vba.OutputTypePerState[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2114 &mode_lib->vba.OutputRatePerState[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2115 &mode_lib->vba.RequiredSlots[i][k]); in dml32_ModeSupportAndSystemConfigurationFull()
2117 if (mode_lib->vba.RequiresDSC[i][k] == false) { in dml32_ModeSupportAndSystemConfigurationFull()
2118 …mode_lib->vba.ODMCombineEnablePerState[i][k] = v->dummy_vars.dml32_ModeSupportAndSystemConfigurati… in dml32_ModeSupportAndSystemConfigurationFull()
2119 mode_lib->vba.RequiredDISPCLKPerSurface[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2126 …mode_lib->vba.ODMCombineEnablePerState[i][k] = v->dummy_vars.dml32_ModeSupportAndSystemConfigurati… in dml32_ModeSupportAndSystemConfigurationFull()
2127 mode_lib->vba.RequiredDISPCLKPerSurface[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2136 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2137 if (mode_lib->vba.ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_4to1) { in dml32_ModeSupportAndSystemConfigurationFull()
2138 mode_lib->vba.MPCCombine[i][j][k] = false; in dml32_ModeSupportAndSystemConfigurationFull()
2139 mode_lib->vba.NoOfDPP[i][j][k] = 4; in dml32_ModeSupportAndSystemConfigurationFull()
2140 } else if (mode_lib->vba.ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml32_ModeSupportAndSystemConfigurationFull()
2141 mode_lib->vba.MPCCombine[i][j][k] = false; in dml32_ModeSupportAndSystemConfigurationFull()
2142 mode_lib->vba.NoOfDPP[i][j][k] = 2; in dml32_ModeSupportAndSystemConfigurationFull()
2143 } else if (mode_lib->vba.MPCCombineUse[k] == dm_mpc_never) { in dml32_ModeSupportAndSystemConfigurationFull()
2144 mode_lib->vba.MPCCombine[i][j][k] = false; in dml32_ModeSupportAndSystemConfigurationFull()
2145 mode_lib->vba.NoOfDPP[i][j][k] = 1; in dml32_ModeSupportAndSystemConfigurationFull()
2147 mode_lib->vba.MinDPPCLKUsingSingleDPP[k] in dml32_ModeSupportAndSystemConfigurationFull()
2151 mode_lib->vba.SingleDPPViewportSizeSupportPerSurface[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2152 mode_lib->vba.MPCCombine[i][j][k] = false; in dml32_ModeSupportAndSystemConfigurationFull()
2153 mode_lib->vba.NoOfDPP[i][j][k] = 1; in dml32_ModeSupportAndSystemConfigurationFull()
2155 mode_lib->vba.MPCCombine[i][j][k] = true; in dml32_ModeSupportAndSystemConfigurationFull()
2156 mode_lib->vba.NoOfDPP[i][j][k] = 2; in dml32_ModeSupportAndSystemConfigurationFull()
2160 mode_lib->vba.MPCCombine[i][j][k] = false; in dml32_ModeSupportAndSystemConfigurationFull()
2161 mode_lib->vba.NoOfDPP[i][j][k] = 1; in dml32_ModeSupportAndSystemConfigurationFull()
2169 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2170 if (mode_lib->vba.NoOfDPP[i][j][k] == 1) in dml32_ModeSupportAndSystemConfigurationFull()
2173 if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 in dml32_ModeSupportAndSystemConfigurationFull()
2174 || mode_lib->vba.SourcePixelFormat[k] == dm_420_10 in dml32_ModeSupportAndSystemConfigurationFull()
2175 || mode_lib->vba.SourcePixelFormat[k] == dm_420_12 in dml32_ModeSupportAndSystemConfigurationFull()
2176 || mode_lib->vba.SourcePixelFormat[k] == dm_rgbe_alpha) { in dml32_ModeSupportAndSystemConfigurationFull()
2198 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2199 if (mode_lib->vba.MPCCombineUse[k] in dml32_ModeSupportAndSystemConfigurationFull()
2201 mode_lib->vba.MPCCombineUse[k] != dm_mpc_reduce_voltage && in dml32_ModeSupportAndSystemConfigurationFull()
2202 mode_lib->vba.ReadBandwidthLuma[k] + in dml32_ModeSupportAndSystemConfigurationFull()
2203 mode_lib->vba.ReadBandwidthChroma[k] > in dml32_ModeSupportAndSystemConfigurationFull()
2205 (mode_lib->vba.ODMCombineEnablePerState[i][k] != in dml32_ModeSupportAndSystemConfigurationFull()
2207 mode_lib->vba.ODMCombineEnablePerState[i][k] != in dml32_ModeSupportAndSystemConfigurationFull()
2209 mode_lib->vba.MPCCombine[i][j][k] == false) { in dml32_ModeSupportAndSystemConfigurationFull()
2211 mode_lib->vba.ReadBandwidthLuma[k] in dml32_ModeSupportAndSystemConfigurationFull()
2212 + mode_lib->vba.ReadBandwidthChroma[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2213 NumberOfNonCombinedSurfaceOfMaximumBandwidth = k; in dml32_ModeSupportAndSystemConfigurationFull()
2228 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2229 if (mode_lib->vba.WritebackEnable[k]) { in dml32_ModeSupportAndSystemConfigurationFull()
2233 mode_lib->vba.WritebackPixelFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
2234 mode_lib->vba.PixelClock[k], in dml32_ModeSupportAndSystemConfigurationFull()
2235 mode_lib->vba.WritebackHRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
2236 mode_lib->vba.WritebackVRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
2237 mode_lib->vba.WritebackHTaps[k], in dml32_ModeSupportAndSystemConfigurationFull()
2238 mode_lib->vba.WritebackVTaps[k], in dml32_ModeSupportAndSystemConfigurationFull()
2239 mode_lib->vba.WritebackSourceWidth[k], in dml32_ModeSupportAndSystemConfigurationFull()
2240 mode_lib->vba.WritebackDestinationWidth[k], in dml32_ModeSupportAndSystemConfigurationFull()
2241 mode_lib->vba.HTotal[k], in dml32_ModeSupportAndSystemConfigurationFull()
2248 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2250 mode_lib->vba.RequiredDISPCLKPerSurface[i][j][k]); in dml32_ModeSupportAndSystemConfigurationFull()
2253 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in dml32_ModeSupportAndSystemConfigurationFull()
2254 mode_lib->vba.NoOfDPPThisState[k] = mode_lib->vba.NoOfDPP[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2263 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) in dml32_ModeSupportAndSystemConfigurationFull()
2264 mode_lib->vba.RequiredDPPCLK[i][j][k] = mode_lib->vba.RequiredDPPCLKThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2281 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2282 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml32_ModeSupportAndSystemConfigurationFull()
2284 if (mode_lib->vba.Output[k] == dm_dp2p0) { in dml32_ModeSupportAndSystemConfigurationFull()
2286 if (mode_lib->vba.OutputMultistreamId[k] in dml32_ModeSupportAndSystemConfigurationFull()
2287 == k || mode_lib->vba.OutputMultistreamEn[k] == false) { in dml32_ModeSupportAndSystemConfigurationFull()
2301 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2302 if (!(mode_lib->vba.DSCInputBitPerComponent[k] == 12.0 in dml32_ModeSupportAndSystemConfigurationFull()
2303 || mode_lib->vba.DSCInputBitPerComponent[k] == 10.0 in dml32_ModeSupportAndSystemConfigurationFull()
2304 || mode_lib->vba.DSCInputBitPerComponent[k] == 8.0) in dml32_ModeSupportAndSystemConfigurationFull()
2305 || mode_lib->vba.DSCInputBitPerComponent[k] > mode_lib->vba.MaximumDSCBitsPerComponent) { in dml32_ModeSupportAndSystemConfigurationFull()
2312 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2313 if (mode_lib->vba.OutputMultistreamEn[k] == true && mode_lib->vba.OutputMultistreamId[k] == k) { in dml32_ModeSupportAndSystemConfigurationFull()
2314 TotalSlots = mode_lib->vba.RequiredSlots[i][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2316 if (mode_lib->vba.OutputMultistreamId[j] == k) in dml32_ModeSupportAndSystemConfigurationFull()
2319 if (mode_lib->vba.Output[k] == dm_dp && TotalSlots > 63) in dml32_ModeSupportAndSystemConfigurationFull()
2321 if (mode_lib->vba.Output[k] == dm_dp2p0 && TotalSlots > 64) in dml32_ModeSupportAndSystemConfigurationFull()
2326 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2327 if (mode_lib->vba.BlendingAndTiming[k] == k in dml32_ModeSupportAndSystemConfigurationFull()
2328 && (mode_lib->vba.Output[k] == dm_dp || mode_lib->vba.Output[k] == dm_dp2p0 in dml32_ModeSupportAndSystemConfigurationFull()
2329 || mode_lib->vba.Output[k] == dm_edp in dml32_ModeSupportAndSystemConfigurationFull()
2330 || mode_lib->vba.Output[k] == dm_hdmi) in dml32_ModeSupportAndSystemConfigurationFull()
2331 && mode_lib->vba.OutputBppPerState[i][k] == 0 && in dml32_ModeSupportAndSystemConfigurationFull()
2332 (mode_lib->vba.UsesMALLForPStateChange[k] != dm_use_mall_pstate_change_phantom_pipe)) { in dml32_ModeSupportAndSystemConfigurationFull()
2351 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2352 if (mode_lib->vba.BlendingAndTiming[k] == k in dml32_ModeSupportAndSystemConfigurationFull()
2353 && (mode_lib->vba.Output[k] == dm_dp || mode_lib->vba.Output[k] == dm_dp2p0 in dml32_ModeSupportAndSystemConfigurationFull()
2354 || mode_lib->vba.Output[k] == dm_edp in dml32_ModeSupportAndSystemConfigurationFull()
2355 || mode_lib->vba.Output[k] == dm_hdmi)) { in dml32_ModeSupportAndSystemConfigurationFull()
2356 if (mode_lib->vba.OutputFormat[k] in dml32_ModeSupportAndSystemConfigurationFull()
2357 == dm_420 && mode_lib->vba.Interlace[k] == 1 && in dml32_ModeSupportAndSystemConfigurationFull()
2361 if (mode_lib->vba.DSCEnable[k] && mode_lib->vba.ForcedOutputLinkBPP[k] != 0) in dml32_ModeSupportAndSystemConfigurationFull()
2363 if (mode_lib->vba.DSCEnable[k] && mode_lib->vba.OutputFormat[k] == dm_n422 in dml32_ModeSupportAndSystemConfigurationFull()
2367 if (((mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_hbr in dml32_ModeSupportAndSystemConfigurationFull()
2368 || mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_hbr2 in dml32_ModeSupportAndSystemConfigurationFull()
2369 || mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_hbr3) in dml32_ModeSupportAndSystemConfigurationFull()
2370 && mode_lib->vba.Output[k] != dm_dp && mode_lib->vba.Output[k] != dm_edp) in dml32_ModeSupportAndSystemConfigurationFull()
2371 || ((mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_uhbr10 in dml32_ModeSupportAndSystemConfigurationFull()
2372 || mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_uhbr13p5 in dml32_ModeSupportAndSystemConfigurationFull()
2373 || mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_uhbr20) in dml32_ModeSupportAndSystemConfigurationFull()
2374 && mode_lib->vba.Output[k] != dm_dp2p0)) in dml32_ModeSupportAndSystemConfigurationFull()
2377 if (mode_lib->vba.OutputMultistreamEn[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2378 if (mode_lib->vba.OutputMultistreamId[k] == k in dml32_ModeSupportAndSystemConfigurationFull()
2379 && mode_lib->vba.OutputLinkDPRate[k] == dm_dp_rate_na) in dml32_ModeSupportAndSystemConfigurationFull()
2381 if (mode_lib->vba.OutputMultistreamId[k] == k && mode_lib->vba.ForcedOutputLinkBPP[k] == 0) in dml32_ModeSupportAndSystemConfigurationFull()
2384 if (mode_lib->vba.OutputMultistreamId[k] == j in dml32_ModeSupportAndSystemConfigurationFull()
2385 && mode_lib->vba.ForcedOutputLinkBPP[k] == 0) in dml32_ModeSupportAndSystemConfigurationFull()
2390 if ((mode_lib->vba.Output[k] == dm_edp || mode_lib->vba.Output[k] == dm_hdmi)) { in dml32_ModeSupportAndSystemConfigurationFull()
2391 if (mode_lib->vba.OutputMultistreamEn[k] == true && mode_lib->vba.OutputMultistreamId[k] == k) in dml32_ModeSupportAndSystemConfigurationFull()
2394 if (mode_lib->vba.OutputMultistreamEn[k] == true && mode_lib->vba.OutputMultistreamId[k] == j) in dml32_ModeSupportAndSystemConfigurationFull()
2399 if (mode_lib->vba.Output[k] != dm_dp in dml32_ModeSupportAndSystemConfigurationFull()
2400 && (mode_lib->vba.ODMUse[k] == dm_odm_split_policy_1to2 in dml32_ModeSupportAndSystemConfigurationFull()
2401 || mode_lib->vba.ODMUse[k] == dm_odm_mso_policy_1to2 in dml32_ModeSupportAndSystemConfigurationFull()
2402 || mode_lib->vba.ODMUse[k] == dm_odm_mso_policy_1to4)) in dml32_ModeSupportAndSystemConfigurationFull()
2405 if ((mode_lib->vba.ODMUse[k] == dm_odm_mso_policy_1to2 in dml32_ModeSupportAndSystemConfigurationFull()
2406 && mode_lib->vba.OutputLinkDPLanes[k] < 2) in dml32_ModeSupportAndSystemConfigurationFull()
2407 || (mode_lib->vba.ODMUse[k] == dm_odm_mso_policy_1to4 in dml32_ModeSupportAndSystemConfigurationFull()
2408 && mode_lib->vba.OutputLinkDPLanes[k] < 4)) in dml32_ModeSupportAndSystemConfigurationFull()
2415 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2416 if (mode_lib->vba.BlendingAndTiming[k] == k in dml32_ModeSupportAndSystemConfigurationFull()
2417 && dml32_RequiredDTBCLK(mode_lib->vba.RequiresDSC[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2418 mode_lib->vba.PixelClockBackEnd[k], in dml32_ModeSupportAndSystemConfigurationFull()
2419 mode_lib->vba.OutputFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
2420 mode_lib->vba.OutputBppPerState[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2421 mode_lib->vba.NumberOfDSCSlices[k], mode_lib->vba.HTotal[k], in dml32_ModeSupportAndSystemConfigurationFull()
2422 mode_lib->vba.HActive[k], mode_lib->vba.AudioSampleRate[k], in dml32_ModeSupportAndSystemConfigurationFull()
2423 mode_lib->vba.AudioSampleLayout[k]) in dml32_ModeSupportAndSystemConfigurationFull()
2433 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2434 if (mode_lib->vba.BlendingAndTiming[k] == k in dml32_ModeSupportAndSystemConfigurationFull()
2435 && mode_lib->vba.ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1 in dml32_ModeSupportAndSystemConfigurationFull()
2436 && mode_lib->vba.Output[k] == dm_hdmi) { in dml32_ModeSupportAndSystemConfigurationFull()
2439 if (mode_lib->vba.BlendingAndTiming[k] == k in dml32_ModeSupportAndSystemConfigurationFull()
2440 && mode_lib->vba.ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_4to1 in dml32_ModeSupportAndSystemConfigurationFull()
2441 && (mode_lib->vba.Output[k] == dm_dp || mode_lib->vba.Output[k] == dm_edp in dml32_ModeSupportAndSystemConfigurationFull()
2442 || mode_lib->vba.Output[k] == dm_hdmi)) { in dml32_ModeSupportAndSystemConfigurationFull()
2450 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2451 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml32_ModeSupportAndSystemConfigurationFull()
2452 if (mode_lib->vba.Output[k] == dm_dp || mode_lib->vba.Output[k] == dm_dp2p0 in dml32_ModeSupportAndSystemConfigurationFull()
2453 || mode_lib->vba.Output[k] == dm_edp) { in dml32_ModeSupportAndSystemConfigurationFull()
2454 if (mode_lib->vba.OutputFormat[k] == dm_420) { in dml32_ModeSupportAndSystemConfigurationFull()
2456 } else if (mode_lib->vba.OutputFormat[k] == dm_444) { in dml32_ModeSupportAndSystemConfigurationFull()
2458 } else if (mode_lib->vba.OutputFormat[k] == dm_n422) { in dml32_ModeSupportAndSystemConfigurationFull()
2463 if (mode_lib->vba.RequiresDSC[i][k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2464 if (mode_lib->vba.ODMCombineEnablePerState[i][k] in dml32_ModeSupportAndSystemConfigurationFull()
2466 …if (mode_lib->vba.PixelClockBackEnd[k] / 12.0 / mode_lib->vba.DSCFormatFactor > (1.0 - mode_lib->v… in dml32_ModeSupportAndSystemConfigurationFull()
2468 } else if (mode_lib->vba.ODMCombineEnablePerState[i][k] in dml32_ModeSupportAndSystemConfigurationFull()
2470 …if (mode_lib->vba.PixelClockBackEnd[k] / 6.0 / mode_lib->vba.DSCFormatFactor > (1.0 - mode_lib->vb… in dml32_ModeSupportAndSystemConfigurationFull()
2473 …if (mode_lib->vba.PixelClockBackEnd[k] / 3.0 / mode_lib->vba.DSCFormatFactor > (1.0 - mode_lib->vb… in dml32_ModeSupportAndSystemConfigurationFull()
2490 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2491 if (mode_lib->vba.RequiresDSC[i][k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2492 if (mode_lib->vba.ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_4to1) { in dml32_ModeSupportAndSystemConfigurationFull()
2493 if (mode_lib->vba.HActive[k] in dml32_ModeSupportAndSystemConfigurationFull()
2497 if (mode_lib->vba.NumberOfDSCSlices[k] > 16) in dml32_ModeSupportAndSystemConfigurationFull()
2499 } else if (mode_lib->vba.ODMCombineEnablePerState[i][k] == dm_odm_combine_mode_2to1) { in dml32_ModeSupportAndSystemConfigurationFull()
2500 if (mode_lib->vba.HActive[k] in dml32_ModeSupportAndSystemConfigurationFull()
2504 if (mode_lib->vba.NumberOfDSCSlices[k] > 8) in dml32_ModeSupportAndSystemConfigurationFull()
2507 if (mode_lib->vba.HActive[k] > mode_lib->vba.MaximumPixelsPerLinePerDSCUnit) in dml32_ModeSupportAndSystemConfigurationFull()
2510 if (mode_lib->vba.NumberOfDSCSlices[k] > 4) in dml32_ModeSupportAndSystemConfigurationFull()
2521 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2522 mode_lib->vba.DSCDelayPerState[i][k] = dml32_DSCDelayRequirement( in dml32_ModeSupportAndSystemConfigurationFull()
2523 mode_lib->vba.RequiresDSC[i][k], mode_lib->vba.ODMCombineEnablePerState[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
2524 mode_lib->vba.DSCInputBitPerComponent[k], in dml32_ModeSupportAndSystemConfigurationFull()
2525 mode_lib->vba.OutputBppPerState[i][k], mode_lib->vba.HActive[k], in dml32_ModeSupportAndSystemConfigurationFull()
2526 mode_lib->vba.HTotal[k], mode_lib->vba.NumberOfDSCSlices[k], in dml32_ModeSupportAndSystemConfigurationFull()
2527 mode_lib->vba.OutputFormat[k], mode_lib->vba.Output[k], in dml32_ModeSupportAndSystemConfigurationFull()
2528 mode_lib->vba.PixelClock[k], mode_lib->vba.PixelClockBackEnd[k], in dml32_ModeSupportAndSystemConfigurationFull()
2532 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2535 if (mode_lib->vba.BlendingAndTiming[k] == m && in dml32_ModeSupportAndSystemConfigurationFull()
2537 mode_lib->vba.DSCDelayPerState[i][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2549 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2550 mode_lib->vba.RequiredDPPCLKThisState[k] = mode_lib->vba.RequiredDPPCLK[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2551 mode_lib->vba.NoOfDPPThisState[k] = mode_lib->vba.NoOfDPP[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2552 mode_lib->vba.ODMCombineEnableThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2553 mode_lib->vba.ODMCombineEnablePerState[i][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2620 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2621 mode_lib->vba.swath_width_luma_ub_all_states[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2622 mode_lib->vba.swath_width_luma_ub_this_state[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2623 mode_lib->vba.swath_width_chroma_ub_all_states[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2624 mode_lib->vba.swath_width_chroma_ub_this_state[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2625 mode_lib->vba.SwathWidthYAllStates[i][j][k] = mode_lib->vba.SwathWidthYThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2626 mode_lib->vba.SwathWidthCAllStates[i][j][k] = mode_lib->vba.SwathWidthCThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2627 mode_lib->vba.SwathHeightYAllStates[i][j][k] = mode_lib->vba.SwathHeightYThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2628 mode_lib->vba.SwathHeightCAllStates[i][j][k] = mode_lib->vba.SwathHeightCThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2633 mode_lib->vba.DETBufferSizeInKByteAllStates[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2634 mode_lib->vba.DETBufferSizeInKByteThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2635 mode_lib->vba.DETBufferSizeYAllStates[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2636 mode_lib->vba.DETBufferSizeYThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2637 mode_lib->vba.DETBufferSizeCAllStates[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2638 mode_lib->vba.DETBufferSizeCThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2643 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2644 mode_lib->vba.cursor_bw[k] = mode_lib->vba.NumberOfCursors[k] * mode_lib->vba.CursorWidth[k][0] in dml32_ModeSupportAndSystemConfigurationFull()
2645 * mode_lib->vba.CursorBPP[k][0] / 8.0 in dml32_ModeSupportAndSystemConfigurationFull()
2646 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2687 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2688 mode_lib->vba.swath_width_luma_ub_this_state[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2689 mode_lib->vba.swath_width_luma_ub_all_states[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2690 mode_lib->vba.swath_width_chroma_ub_this_state[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2691 mode_lib->vba.swath_width_chroma_ub_all_states[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2692 mode_lib->vba.SwathWidthYThisState[k] = mode_lib->vba.SwathWidthYAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2693 mode_lib->vba.SwathWidthCThisState[k] = mode_lib->vba.SwathWidthCAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2694 mode_lib->vba.SwathHeightYThisState[k] = mode_lib->vba.SwathHeightYAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2695 mode_lib->vba.SwathHeightCThisState[k] = mode_lib->vba.SwathHeightCAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2696 mode_lib->vba.DETBufferSizeInKByteThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2697 mode_lib->vba.DETBufferSizeInKByteAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2698 mode_lib->vba.DETBufferSizeYThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2699 mode_lib->vba.DETBufferSizeYAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2700 mode_lib->vba.DETBufferSizeCThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2701 mode_lib->vba.DETBufferSizeCAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2702 mode_lib->vba.RequiredDPPCLKThisState[k] = mode_lib->vba.RequiredDPPCLK[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2703 mode_lib->vba.NoOfDPPThisState[k] = mode_lib->vba.NoOfDPP[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2707 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2708 if (mode_lib->vba.DCCEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2711 + mode_lib->vba.NoOfDPP[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
2716 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2717 …2_ModeSupportAndSystemConfigurationFull.SurfParameters[k].PixelClock = mode_lib->vba.PixelClock[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2718 …odeSupportAndSystemConfigurationFull.SurfParameters[k].DPPPerSurface = mode_lib->vba.NoOfDPP[i][j]… in dml32_ModeSupportAndSystemConfigurationFull()
2719 …deSupportAndSystemConfigurationFull.SurfParameters[k].SourceRotation = mode_lib->vba.SourceRotatio… in dml32_ModeSupportAndSystemConfigurationFull()
2720 …deSupportAndSystemConfigurationFull.SurfParameters[k].ViewportHeight = mode_lib->vba.ViewportHeigh… in dml32_ModeSupportAndSystemConfigurationFull()
2721 …ortAndSystemConfigurationFull.SurfParameters[k].ViewportHeightChroma = mode_lib->vba.ViewportHeigh… in dml32_ModeSupportAndSystemConfigurationFull()
2722 …pportAndSystemConfigurationFull.SurfParameters[k].BlockWidth256BytesY = mode_lib->vba.Read256Block… in dml32_ModeSupportAndSystemConfigurationFull()
2723 …portAndSystemConfigurationFull.SurfParameters[k].BlockHeight256BytesY = mode_lib->vba.Read256Block… in dml32_ModeSupportAndSystemConfigurationFull()
2724 …pportAndSystemConfigurationFull.SurfParameters[k].BlockWidth256BytesC = mode_lib->vba.Read256Block… in dml32_ModeSupportAndSystemConfigurationFull()
2725 …portAndSystemConfigurationFull.SurfParameters[k].BlockHeight256BytesC = mode_lib->vba.Read256Block… in dml32_ModeSupportAndSystemConfigurationFull()
2726 …odeSupportAndSystemConfigurationFull.SurfParameters[k].BlockWidthY = mode_lib->vba.MacroTileWidthY… in dml32_ModeSupportAndSystemConfigurationFull()
2727 …deSupportAndSystemConfigurationFull.SurfParameters[k].BlockHeightY = mode_lib->vba.MacroTileHeight… in dml32_ModeSupportAndSystemConfigurationFull()
2728 …odeSupportAndSystemConfigurationFull.SurfParameters[k].BlockWidthC = mode_lib->vba.MacroTileWidthC… in dml32_ModeSupportAndSystemConfigurationFull()
2729 …deSupportAndSystemConfigurationFull.SurfParameters[k].BlockHeightC = mode_lib->vba.MacroTileHeight… in dml32_ModeSupportAndSystemConfigurationFull()
2730 …ModeSupportAndSystemConfigurationFull.SurfParameters[k].InterlaceEnable = mode_lib->vba.Interlace[ in dml32_ModeSupportAndSystemConfigurationFull()
2731 …ars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].HTotal = mode_lib->vba.HTotal[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2732 …l32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].DCCEnable = mode_lib->vba.DCCEnable[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2733 …upportAndSystemConfigurationFull.SurfParameters[k].SourcePixelFormat = mode_lib->vba.SourcePixelFo… in dml32_ModeSupportAndSystemConfigurationFull()
2734 …odeSupportAndSystemConfigurationFull.SurfParameters[k].SurfaceTiling = mode_lib->vba.SurfaceTiling… in dml32_ModeSupportAndSystemConfigurationFull()
2735 …odeSupportAndSystemConfigurationFull.SurfParameters[k].BytePerPixelY = mode_lib->vba.BytePerPixelY… in dml32_ModeSupportAndSystemConfigurationFull()
2736 …odeSupportAndSystemConfigurationFull.SurfParameters[k].BytePerPixelC = mode_lib->vba.BytePerPixelC… in dml32_ModeSupportAndSystemConfigurationFull()
2737 …v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].ProgressiveToInterlace… in dml32_ModeSupportAndSystemConfigurationFull()
2739 …ars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].VRatio = mode_lib->vba.VRatio[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2740 …ModeSupportAndSystemConfigurationFull.SurfParameters[k].VRatioChroma = mode_lib->vba.VRatioChroma[ in dml32_ModeSupportAndSystemConfigurationFull()
2741 …_vars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].VTaps = mode_lib->vba.vtaps[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2742 …_ModeSupportAndSystemConfigurationFull.SurfParameters[k].VTapsChroma = mode_lib->vba.VTAPsChroma[k in dml32_ModeSupportAndSystemConfigurationFull()
2743 …ars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].PitchY = mode_lib->vba.PitchY[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2744 …odeSupportAndSystemConfigurationFull.SurfParameters[k].DCCMetaPitchY = mode_lib->vba.DCCMetaPitchY… in dml32_ModeSupportAndSystemConfigurationFull()
2745 …ars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters[k].PitchC = mode_lib->vba.PitchC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2746 …odeSupportAndSystemConfigurationFull.SurfParameters[k].DCCMetaPitchC = mode_lib->vba.DCCMetaPitchC… in dml32_ModeSupportAndSystemConfigurationFull()
2747 …pportAndSystemConfigurationFull.SurfParameters[k].ViewportStationary = mode_lib->vba.ViewportStati… in dml32_ModeSupportAndSystemConfigurationFull()
2748 …deSupportAndSystemConfigurationFull.SurfParameters[k].ViewportXStart = mode_lib->vba.ViewportXStar… in dml32_ModeSupportAndSystemConfigurationFull()
2749 …deSupportAndSystemConfigurationFull.SurfParameters[k].ViewportYStart = mode_lib->vba.ViewportYStar… in dml32_ModeSupportAndSystemConfigurationFull()
2750 …eSupportAndSystemConfigurationFull.SurfParameters[k].ViewportXStartC = mode_lib->vba.ViewportXStar… in dml32_ModeSupportAndSystemConfigurationFull()
2751 …eSupportAndSystemConfigurationFull.SurfParameters[k].ViewportYStartC = mode_lib->vba.ViewportYStar… in dml32_ModeSupportAndSystemConfigurationFull()
2752 …rtAndSystemConfigurationFull.SurfParameters[k].FORCE_ONE_ROW_FOR_FRAME = mode_lib->vba.ForceOneRow… in dml32_ModeSupportAndSystemConfigurationFull()
2753 …SupportAndSystemConfigurationFull.SurfParameters[k].SwathHeightY = mode_lib->vba.SwathHeightYThisS… in dml32_ModeSupportAndSystemConfigurationFull()
2754 …SupportAndSystemConfigurationFull.SurfParameters[k].SwathHeightC = mode_lib->vba.SwathHeightCThisS… in dml32_ModeSupportAndSystemConfigurationFull()
2824 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2825 mode_lib->vba.PrefetchLinesY[i][j][k] = mode_lib->vba.PrefetchLinesYThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2826 mode_lib->vba.PrefetchLinesC[i][j][k] = mode_lib->vba.PrefetchLinesCThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2827 mode_lib->vba.meta_row_bandwidth[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2828 mode_lib->vba.meta_row_bandwidth_this_state[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2829 mode_lib->vba.dpte_row_bandwidth[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2830 mode_lib->vba.dpte_row_bandwidth_this_state[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2831 mode_lib->vba.DPTEBytesPerRow[i][j][k] = mode_lib->vba.DPTEBytesPerRowThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2832 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2833 mode_lib->vba.PDEAndMetaPTEBytesPerFrameThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2834 mode_lib->vba.MetaRowBytes[i][j][k] = mode_lib->vba.MetaRowBytesThisState[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2835 mode_lib->vba.use_one_row_for_frame[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2836 mode_lib->vba.use_one_row_for_frame_this_state[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2837 mode_lib->vba.use_one_row_for_frame_flip[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
2838 mode_lib->vba.use_one_row_for_frame_flip_this_state[k]; in dml32_ModeSupportAndSystemConfigurationFull()
2842 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2843 if (mode_lib->vba.PTEBufferSizeNotExceededPerState[k] == false) in dml32_ModeSupportAndSystemConfigurationFull()
2848 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2849 if (mode_lib->vba.DCCMetaBufferSizeNotExceededPerState[k] == false) in dml32_ModeSupportAndSystemConfigurationFull()
2862 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
2864 mode_lib->vba.UsesMALLForPStateChange[k], in dml32_ModeSupportAndSystemConfigurationFull()
2865 mode_lib->vba.swath_width_luma_ub_this_state[k], in dml32_ModeSupportAndSystemConfigurationFull()
2866 mode_lib->vba.swath_width_chroma_ub_this_state[k], in dml32_ModeSupportAndSystemConfigurationFull()
2867 mode_lib->vba.SwathHeightYThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
2868 mode_lib->vba.SwathHeightCThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
2869 (double) mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml32_ModeSupportAndSystemConfigurationFull()
2872 mode_lib->vba.CursorWidth[k][0], in dml32_ModeSupportAndSystemConfigurationFull()
2873 mode_lib->vba.CursorBPP[k][0], in dml32_ModeSupportAndSystemConfigurationFull()
2874 mode_lib->vba.VRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
2875 mode_lib->vba.VRatioChroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
2876 mode_lib->vba.BytePerPixelInDETY[k], in dml32_ModeSupportAndSystemConfigurationFull()
2877 mode_lib->vba.BytePerPixelInDETC[k], in dml32_ModeSupportAndSystemConfigurationFull()
2878 mode_lib->vba.DETBufferSizeYThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
2879 mode_lib->vba.DETBufferSizeCThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
2881 &mode_lib->vba.UrgentBurstFactorCursor[k], in dml32_ModeSupportAndSystemConfigurationFull()
2882 &mode_lib->vba.UrgentBurstFactorLuma[k], in dml32_ModeSupportAndSystemConfigurationFull()
2883 &mode_lib->vba.UrgentBurstFactorChroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
2884 &mode_lib->vba.NoUrgentLatencyHiding[k]); in dml32_ModeSupportAndSystemConfigurationFull()
2914 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2915 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml32_ModeSupportAndSystemConfigurationFull()
2916 if (mode_lib->vba.WritebackEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2917 mode_lib->vba.WritebackDelayTime[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2920 mode_lib->vba.WritebackPixelFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
2921 mode_lib->vba.WritebackHRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
2922 mode_lib->vba.WritebackVRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
2923 mode_lib->vba.WritebackVTaps[k], in dml32_ModeSupportAndSystemConfigurationFull()
2924 mode_lib->vba.WritebackDestinationWidth[k], in dml32_ModeSupportAndSystemConfigurationFull()
2925 mode_lib->vba.WritebackDestinationHeight[k], in dml32_ModeSupportAndSystemConfigurationFull()
2926 mode_lib->vba.WritebackSourceHeight[k], in dml32_ModeSupportAndSystemConfigurationFull()
2927 mode_lib->vba.HTotal[k]) in dml32_ModeSupportAndSystemConfigurationFull()
2930 mode_lib->vba.WritebackDelayTime[k] = 0.0; in dml32_ModeSupportAndSystemConfigurationFull()
2934 == k && mode_lib->vba.WritebackEnable[m] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
2935 mode_lib->vba.WritebackDelayTime[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2936 dml_max(mode_lib->vba.WritebackDelayTime[k], in dml32_ModeSupportAndSystemConfigurationFull()
2952 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2954 if (mode_lib->vba.BlendingAndTiming[k] == m) { in dml32_ModeSupportAndSystemConfigurationFull()
2955 mode_lib->vba.WritebackDelayTime[k] = in dml32_ModeSupportAndSystemConfigurationFull()
2961 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
2962 mode_lib->vba.MaximumVStartup[i][j][k] = ((mode_lib->vba.Interlace[k] && in dml32_ModeSupportAndSystemConfigurationFull()
2964 dml_floor((mode_lib->vba.VTotal[k] - in dml32_ModeSupportAndSystemConfigurationFull()
2965 mode_lib->vba.VActive[k]) / 2.0, 1.0) : in dml32_ModeSupportAndSystemConfigurationFull()
2966 mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]) in dml32_ModeSupportAndSystemConfigurationFull()
2968 mode_lib->vba.WritebackDelayTime[k] / in dml32_ModeSupportAndSystemConfigurationFull()
2969 (mode_lib->vba.HTotal[k] / in dml32_ModeSupportAndSystemConfigurationFull()
2970 mode_lib->vba.PixelClock[k]), 1.0)); in dml32_ModeSupportAndSystemConfigurationFull()
2973 if (mode_lib->vba.MaximumVStartup[i][j][k] > 1023) in dml32_ModeSupportAndSystemConfigurationFull()
2974 mode_lib->vba.MaximumVStartup[i][j][k] = 1023; in dml32_ModeSupportAndSystemConfigurationFull()
2977 mode_lib->vba.MaximumVStartup[i][j][k]); in dml32_ModeSupportAndSystemConfigurationFull()
2998 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3000 || (mode_lib->vba.ImmediateFlipRequirement[k] == dm_immediate_flip_required); in dml32_ModeSupportAndSystemConfigurationFull()
3004 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3007 || ((mode_lib->vba.ImmediateFlipRequirement[k] in dml32_ModeSupportAndSystemConfigurationFull()
3009 && (mode_lib->vba.ImmediateFlipRequirement[k] in dml32_ModeSupportAndSystemConfigurationFull()
3017 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3020 ((mode_lib->vba.HostVMEnable == true || mode_lib->vba.ImmediateFlipRequirement[k] != in dml32_ModeSupportAndSystemConfigurationFull()
3022 (mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_full_frame || in dml32_ModeSupportAndSystemConfigurationFull()
3023 mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_phantom_pipe)); in dml32_ModeSupportAndSystemConfigurationFull()
3027 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3030 || ((mode_lib->vba.UseMALLForStaticScreen[k] == dm_use_mall_static_screen_enable in dml32_ModeSupportAndSystemConfigurationFull()
3031 || mode_lib->vba.UseMALLForStaticScreen[k] == dm_use_mall_static_screen_optimize) in dml32_ModeSupportAndSystemConfigurationFull()
3032 && (mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_phantom_pipe)) in dml32_ModeSupportAndSystemConfigurationFull()
3033 || ((mode_lib->vba.UseMALLForStaticScreen[k] == dm_use_mall_static_screen_disable in dml32_ModeSupportAndSystemConfigurationFull()
3034 || mode_lib->vba.UseMALLForStaticScreen[k] == dm_use_mall_static_screen_optimize) in dml32_ModeSupportAndSystemConfigurationFull()
3035 && (mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_full_frame)); in dml32_ModeSupportAndSystemConfigurationFull()
3042 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3043 if (mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_full_frame) in dml32_ModeSupportAndSystemConfigurationFull()
3045 if (mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_sub_viewport) in dml32_ModeSupportAndSystemConfigurationFull()
3047 if (mode_lib->vba.UsesMALLForPStateChange[k] == dm_use_mall_pstate_change_phantom_pipe) in dml32_ModeSupportAndSystemConfigurationFull()
3139 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3140 …eSupportAndSystemConfigurationFull.MaxTotalVActiveRDBandwidth += mode_lib->vba.ReadBandwidthLuma[k] in dml32_ModeSupportAndSystemConfigurationFull()
3141 + mode_lib->vba.ReadBandwidthChroma[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3173 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3174 mode_lib->vba.NoOfDPPThisState[k] = mode_lib->vba.NoOfDPP[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3175 mode_lib->vba.swath_width_luma_ub_this_state[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3176 mode_lib->vba.swath_width_luma_ub_all_states[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3177 mode_lib->vba.swath_width_chroma_ub_this_state[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3178 mode_lib->vba.swath_width_chroma_ub_all_states[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3179 mode_lib->vba.SwathWidthYThisState[k] = mode_lib->vba.SwathWidthYAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3180 mode_lib->vba.SwathWidthCThisState[k] = mode_lib->vba.SwathWidthCAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3181 mode_lib->vba.SwathHeightYThisState[k] = mode_lib->vba.SwathHeightYAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3182 mode_lib->vba.SwathHeightCThisState[k] = mode_lib->vba.SwathHeightCAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3187 mode_lib->vba.DETBufferSizeInKByteThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3188 mode_lib->vba.DETBufferSizeInKByteAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3189 mode_lib->vba.DETBufferSizeYThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3190 mode_lib->vba.DETBufferSizeYAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3191 mode_lib->vba.DETBufferSizeCThisState[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3192 mode_lib->vba.DETBufferSizeCAllStates[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3257 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3260 mode_lib->vba.UsesMALLForPStateChange[k], in dml32_ModeSupportAndSystemConfigurationFull()
3262 mode_lib->vba.DRRDisplay[k], in dml32_ModeSupportAndSystemConfigurationFull()
3268 ….dml32_ModeSupportAndSystemConfigurationFull.myPipe.Dppclk = mode_lib->vba.RequiredDPPCLK[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3270 …y_vars.dml32_ModeSupportAndSystemConfigurationFull.myPipe.PixelClock = mode_lib->vba.PixelClock[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3272 ….dml32_ModeSupportAndSystemConfigurationFull.myPipe.DPPPerSurface = mode_lib->vba.NoOfDPP[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3273 ….dml32_ModeSupportAndSystemConfigurationFull.myPipe.ScalerEnabled = mode_lib->vba.ScalerEnabled[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3274 …ml32_ModeSupportAndSystemConfigurationFull.myPipe.SourceRotation = mode_lib->vba.SourceRotation[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3275 …SupportAndSystemConfigurationFull.myPipe.BlockWidth256BytesY = mode_lib->vba.Read256BlockWidthY[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3276 …pportAndSystemConfigurationFull.myPipe.BlockHeight256BytesY = mode_lib->vba.Read256BlockHeightY[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3277 …SupportAndSystemConfigurationFull.myPipe.BlockWidth256BytesC = mode_lib->vba.Read256BlockWidthC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3278 …pportAndSystemConfigurationFull.myPipe.BlockHeight256BytesC = mode_lib->vba.Read256BlockHeightC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3279 …rs.dml32_ModeSupportAndSystemConfigurationFull.myPipe.InterlaceEnable = mode_lib->vba.Interlace[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3280 …32_ModeSupportAndSystemConfigurationFull.myPipe.NumberOfCursors = mode_lib->vba.NumberOfCursors[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3281 …pportAndSystemConfigurationFull.myPipe.VBlank = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3282 … v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.myPipe.HTotal = mode_lib->vba.HTotal[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3283 …->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.myPipe.HActive = mode_lib->vba.HActive[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3284 …mmy_vars.dml32_ModeSupportAndSystemConfigurationFull.myPipe.DCCEnable = mode_lib->vba.DCCEnable[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3285 …odeSupportAndSystemConfigurationFull.myPipe.ODMMode = mode_lib->vba.ODMCombineEnablePerState[i][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3286 …odeSupportAndSystemConfigurationFull.myPipe.SourcePixelFormat = mode_lib->vba.SourcePixelFormat[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3287 ….dml32_ModeSupportAndSystemConfigurationFull.myPipe.BytePerPixelY = mode_lib->vba.BytePerPixelY[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3288 ….dml32_ModeSupportAndSystemConfigurationFull.myPipe.BytePerPixelC = mode_lib->vba.BytePerPixelC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3292 mode_lib->vba.NoTimeForPrefetch[i][j][k] = in dml32_ModeSupportAndSystemConfigurationFull()
3295 k, in dml32_ModeSupportAndSystemConfigurationFull()
3298 v->DSCDelayPerState[i][k], in dml32_ModeSupportAndSystemConfigurationFull()
3299 v->SwathWidthYThisState[k] / v->HRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
3300 dml_min(v->MaxVStartup, v->MaximumVStartup[i][j][k]), in dml32_ModeSupportAndSystemConfigurationFull()
3301 v->MaximumVStartup[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3305 v->PDEAndMetaPTEBytesPerFrame[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3306 v->MetaRowBytes[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3307 v->DPTEBytesPerRow[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3308 v->PrefetchLinesY[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3309 v->SwathWidthYThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3310 v->PrefillY[k], in dml32_ModeSupportAndSystemConfigurationFull()
3311 v->MaxNumSwY[k], in dml32_ModeSupportAndSystemConfigurationFull()
3312 v->PrefetchLinesC[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3313 v->SwathWidthCThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3314 v->PrefillC[k], in dml32_ModeSupportAndSystemConfigurationFull()
3315 v->MaxNumSwC[k], in dml32_ModeSupportAndSystemConfigurationFull()
3316 v->swath_width_luma_ub_this_state[k], in dml32_ModeSupportAndSystemConfigurationFull()
3317 v->swath_width_chroma_ub_this_state[k], in dml32_ModeSupportAndSystemConfigurationFull()
3318 v->SwathHeightYThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3319 v->SwathHeightCThisState[k], v->TWait, in dml32_ModeSupportAndSystemConfigurationFull()
3325 &v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.DSTXAfterScaler[k], in dml32_ModeSupportAndSystemConfigurationFull()
3326 &v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.DSTYAfterScaler[k], in dml32_ModeSupportAndSystemConfigurationFull()
3327 &v->LineTimesForPrefetch[k], in dml32_ModeSupportAndSystemConfigurationFull()
3328 &v->PrefetchBW[k], in dml32_ModeSupportAndSystemConfigurationFull()
3329 &v->LinesForMetaPTE[k], in dml32_ModeSupportAndSystemConfigurationFull()
3330 &v->LinesForMetaAndDPTERow[k], in dml32_ModeSupportAndSystemConfigurationFull()
3331 &v->VRatioPreY[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3332 &v->VRatioPreC[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3333 &v->RequiredPrefetchPixelDataBWLuma[0][0][k], in dml32_ModeSupportAndSystemConfigurationFull()
3334 &v->RequiredPrefetchPixelDataBWChroma[0][0][k], in dml32_ModeSupportAndSystemConfigurationFull()
3335 &v->NoTimeForDynamicMetadata[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3336 &v->Tno_bw[k], in dml32_ModeSupportAndSystemConfigurationFull()
3337 &v->prefetch_vmrow_bw[k], in dml32_ModeSupportAndSystemConfigurationFull()
3346 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3348 mode_lib->vba.UsesMALLForPStateChange[k], in dml32_ModeSupportAndSystemConfigurationFull()
3349 mode_lib->vba.swath_width_luma_ub_this_state[k], in dml32_ModeSupportAndSystemConfigurationFull()
3350 mode_lib->vba.swath_width_chroma_ub_this_state[k], in dml32_ModeSupportAndSystemConfigurationFull()
3351 mode_lib->vba.SwathHeightYThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3352 mode_lib->vba.SwathHeightCThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3353 mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], in dml32_ModeSupportAndSystemConfigurationFull()
3355 mode_lib->vba.CursorWidth[k][0], mode_lib->vba.CursorBPP[k][0], in dml32_ModeSupportAndSystemConfigurationFull()
3356 mode_lib->vba.VRatioPreY[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3357 mode_lib->vba.VRatioPreC[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3358 mode_lib->vba.BytePerPixelInDETY[k], in dml32_ModeSupportAndSystemConfigurationFull()
3359 mode_lib->vba.BytePerPixelInDETC[k], in dml32_ModeSupportAndSystemConfigurationFull()
3360 mode_lib->vba.DETBufferSizeYThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3361 mode_lib->vba.DETBufferSizeCThisState[k], in dml32_ModeSupportAndSystemConfigurationFull()
3363 &mode_lib->vba.UrgentBurstFactorCursorPre[k], in dml32_ModeSupportAndSystemConfigurationFull()
3364 &mode_lib->vba.UrgentBurstFactorLumaPre[k], in dml32_ModeSupportAndSystemConfigurationFull()
3365 &mode_lib->vba.UrgentBurstFactorChromaPre[k], in dml32_ModeSupportAndSystemConfigurationFull()
3366 &mode_lib->vba.NotUrgentLatencyHidingPre[k]); in dml32_ModeSupportAndSystemConfigurationFull()
3400 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3401 if (mode_lib->vba.LineTimesForPrefetch[k] in dml32_ModeSupportAndSystemConfigurationFull()
3402 < 2.0 || mode_lib->vba.LinesForMetaPTE[k] >= 32.0 in dml32_ModeSupportAndSystemConfigurationFull()
3403 || mode_lib->vba.LinesForMetaAndDPTERow[k] >= 16.0 in dml32_ModeSupportAndSystemConfigurationFull()
3404 || mode_lib->vba.NoTimeForPrefetch[i][j][k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
3410 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3411 if (mode_lib->vba.NoTimeForDynamicMetadata[i][j][k] == true) in dml32_ModeSupportAndSystemConfigurationFull()
3416 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3417 if (mode_lib->vba.VRatioPreY[i][j][k] > mode_lib->vba.MaxVRatioPre in dml32_ModeSupportAndSystemConfigurationFull()
3418 || mode_lib->vba.VRatioPreC[i][j][k] > mode_lib->vba.MaxVRatioPre in dml32_ModeSupportAndSystemConfigurationFull()
3419 || mode_lib->vba.NoTimeForPrefetch[i][j][k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
3424 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3425 if (mode_lib->vba.LinesForMetaAndDPTERow[k] >= 16 in dml32_ModeSupportAndSystemConfigurationFull()
3426 || mode_lib->vba.LinesForMetaPTE[k] >= 32) { in dml32_ModeSupportAndSystemConfigurationFull()
3452 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3453 if (!(mode_lib->vba.ImmediateFlipRequirement[k] == in dml32_ModeSupportAndSystemConfigurationFull()
3457 + mode_lib->vba.NoOfDPP[i][j][k] in dml32_ModeSupportAndSystemConfigurationFull()
3458 * mode_lib->vba.PDEAndMetaPTEBytesPerFrame[i][j][k] in dml32_ModeSupportAndSystemConfigurationFull()
3459 + mode_lib->vba.MetaRowBytes[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3460 if (mode_lib->vba.use_one_row_for_frame_flip[i][j][k]) { in dml32_ModeSupportAndSystemConfigurationFull()
3463 * mode_lib->vba.DPTEBytesPerRow[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3467 + mode_lib->vba.DPTEBytesPerRow[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3472 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3481 mode_lib->vba.PDEAndMetaPTEBytesPerFrame[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3482 mode_lib->vba.MetaRowBytes[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3483 mode_lib->vba.DPTEBytesPerRow[i][j][k], in dml32_ModeSupportAndSystemConfigurationFull()
3486 mode_lib->vba.SourcePixelFormat[k], in dml32_ModeSupportAndSystemConfigurationFull()
3487 (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), in dml32_ModeSupportAndSystemConfigurationFull()
3488 mode_lib->vba.VRatio[k], in dml32_ModeSupportAndSystemConfigurationFull()
3489 mode_lib->vba.VRatioChroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
3490 mode_lib->vba.Tno_bw[k], in dml32_ModeSupportAndSystemConfigurationFull()
3491 mode_lib->vba.DCCEnable[k], in dml32_ModeSupportAndSystemConfigurationFull()
3492 mode_lib->vba.dpte_row_height[k], in dml32_ModeSupportAndSystemConfigurationFull()
3493 mode_lib->vba.meta_row_height[k], in dml32_ModeSupportAndSystemConfigurationFull()
3494 mode_lib->vba.dpte_row_height_chroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
3495 mode_lib->vba.meta_row_height_chroma[k], in dml32_ModeSupportAndSystemConfigurationFull()
3496 mode_lib->vba.use_one_row_for_frame_flip[i][j][k], // 24 in dml32_ModeSupportAndSystemConfigurationFull()
3499 &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], in dml32_ModeSupportAndSystemConfigurationFull()
3500 &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], in dml32_ModeSupportAndSystemConfigurationFull()
3501 &mode_lib->vba.final_flip_bw[k], in dml32_ModeSupportAndSystemConfigurationFull()
3502 &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); in dml32_ModeSupportAndSystemConfigurationFull()
3533 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3534 if (!(mode_lib->vba.ImmediateFlipRequirement[k] in dml32_ModeSupportAndSystemConfigurationFull()
3536 && (mode_lib->vba.ImmediateFlipSupportedForPipe[k] in dml32_ModeSupportAndSystemConfigurationFull()
3563 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in dml32_ModeSupportAndSystemConfigurationFull()
3564 mode_lib->vba.use_one_row_for_frame_this_state[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3565 mode_lib->vba.use_one_row_for_frame[i][j][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3618 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3619 if (mode_lib->vba.CursorWidth[k][0] > 0.0) { in dml32_ModeSupportAndSystemConfigurationFull()
3620 if (mode_lib->vba.CursorBPP[k][0] == 64 && mode_lib->vba.Cursor64BppSupport == false) in dml32_ModeSupportAndSystemConfigurationFull()
3627 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3628 mode_lib->vba.AlignedYPitch[k] = dml_ceil( in dml32_ModeSupportAndSystemConfigurationFull()
3629 dml_max(mode_lib->vba.PitchY[k], mode_lib->vba.SurfaceWidthY[k]), in dml32_ModeSupportAndSystemConfigurationFull()
3630 mode_lib->vba.MacroTileWidthY[k]); in dml32_ModeSupportAndSystemConfigurationFull()
3631 if (mode_lib->vba.DCCEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
3632 mode_lib->vba.AlignedDCCMetaPitchY[k] = dml_ceil( in dml32_ModeSupportAndSystemConfigurationFull()
3633 dml_max(mode_lib->vba.DCCMetaPitchY[k], mode_lib->vba.SurfaceWidthY[k]), in dml32_ModeSupportAndSystemConfigurationFull()
3634 64.0 * mode_lib->vba.Read256BlockWidthY[k]); in dml32_ModeSupportAndSystemConfigurationFull()
3636 mode_lib->vba.AlignedDCCMetaPitchY[k] = mode_lib->vba.DCCMetaPitchY[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3638 …if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 && mode_lib->vba.SourcePixelFormat[k] != dm_44… in dml32_ModeSupportAndSystemConfigurationFull()
3639 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml32_ModeSupportAndSystemConfigurationFull()
3640 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 in dml32_ModeSupportAndSystemConfigurationFull()
3641 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe in dml32_ModeSupportAndSystemConfigurationFull()
3642 && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) { in dml32_ModeSupportAndSystemConfigurationFull()
3643 mode_lib->vba.AlignedCPitch[k] = dml_ceil( in dml32_ModeSupportAndSystemConfigurationFull()
3644 dml_max(mode_lib->vba.PitchC[k], mode_lib->vba.SurfaceWidthC[k]), in dml32_ModeSupportAndSystemConfigurationFull()
3645 mode_lib->vba.MacroTileWidthC[k]); in dml32_ModeSupportAndSystemConfigurationFull()
3646 if (mode_lib->vba.DCCEnable[k] == true) { in dml32_ModeSupportAndSystemConfigurationFull()
3647 mode_lib->vba.AlignedDCCMetaPitchC[k] = dml_ceil( in dml32_ModeSupportAndSystemConfigurationFull()
3648 dml_max(mode_lib->vba.DCCMetaPitchC[k], in dml32_ModeSupportAndSystemConfigurationFull()
3649 mode_lib->vba.SurfaceWidthC[k]), in dml32_ModeSupportAndSystemConfigurationFull()
3650 64.0 * mode_lib->vba.Read256BlockWidthC[k]); in dml32_ModeSupportAndSystemConfigurationFull()
3652 mode_lib->vba.AlignedDCCMetaPitchC[k] = mode_lib->vba.DCCMetaPitchC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3655 mode_lib->vba.AlignedCPitch[k] = mode_lib->vba.PitchC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3656 mode_lib->vba.AlignedDCCMetaPitchC[k] = mode_lib->vba.DCCMetaPitchC[k]; in dml32_ModeSupportAndSystemConfigurationFull()
3658 if (mode_lib->vba.AlignedYPitch[k] > mode_lib->vba.PitchY[k] in dml32_ModeSupportAndSystemConfigurationFull()
3659 || mode_lib->vba.AlignedCPitch[k] > mode_lib->vba.PitchC[k] in dml32_ModeSupportAndSystemConfigurationFull()
3660 || mode_lib->vba.AlignedDCCMetaPitchY[k] > mode_lib->vba.DCCMetaPitchY[k] in dml32_ModeSupportAndSystemConfigurationFull()
3661 || mode_lib->vba.AlignedDCCMetaPitchC[k] > mode_lib->vba.DCCMetaPitchC[k]) { in dml32_ModeSupportAndSystemConfigurationFull()
3667 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3668 if (mode_lib->vba.ViewportWidth[k] > mode_lib->vba.SurfaceWidthY[k] in dml32_ModeSupportAndSystemConfigurationFull()
3669 || mode_lib->vba.ViewportHeight[k] > mode_lib->vba.SurfaceHeightY[k]) { in dml32_ModeSupportAndSystemConfigurationFull()
3671 if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 in dml32_ModeSupportAndSystemConfigurationFull()
3672 && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 in dml32_ModeSupportAndSystemConfigurationFull()
3673 && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 in dml32_ModeSupportAndSystemConfigurationFull()
3674 && mode_lib->vba.SourcePixelFormat[k] != dm_444_8 in dml32_ModeSupportAndSystemConfigurationFull()
3675 && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe) { in dml32_ModeSupportAndSystemConfigurationFull()
3676 if (mode_lib->vba.ViewportWidthChroma[k] > mode_lib->vba.SurfaceWidthC[k] in dml32_ModeSupportAndSystemConfigurationFull()
3677 || mode_lib->vba.ViewportHeightChroma[k] in dml32_ModeSupportAndSystemConfigurationFull()
3678 > mode_lib->vba.SurfaceHeightC[k]) { in dml32_ModeSupportAndSystemConfigurationFull()
3711 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3712 mode_lib->vba.MPCCombineEnable[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3713 mode_lib->vba.MPCCombine[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3714 …mode_lib->vba.DPPPerPlane[k] = mode_lib->vba.NoOfDPP[mode_lib->vba.VoltageLevel][MaximumMPCCombine… in dml32_ModeSupportAndSystemConfigurationFull()
3715 mode_lib->vba.SwathHeightY[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3716 mode_lib->vba.SwathHeightYAllStates[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3717 mode_lib->vba.SwathHeightC[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3718 mode_lib->vba.SwathHeightCAllStates[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3719 mode_lib->vba.DETBufferSizeInKByte[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3720 mode_lib->vba.DETBufferSizeInKByteAllStates[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3721 mode_lib->vba.DETBufferSizeY[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3722 mode_lib->vba.DETBufferSizeYAllStates[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3723 mode_lib->vba.DETBufferSizeC[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3724 mode_lib->vba.DETBufferSizeCAllStates[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3725 mode_lib->vba.OutputType[k] = mode_lib->vba.OutputTypePerState[mode_lib->vba.VoltageLevel][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3726 mode_lib->vba.OutputRate[k] = mode_lib->vba.OutputRatePerState[mode_lib->vba.VoltageLevel][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3737 for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) { in dml32_ModeSupportAndSystemConfigurationFull()
3738 if (mode_lib->vba.BlendingAndTiming[k] == k) { in dml32_ModeSupportAndSystemConfigurationFull()
3739 mode_lib->vba.ODMCombineEnabled[k] = in dml32_ModeSupportAndSystemConfigurationFull()
3740 mode_lib->vba.ODMCombineEnablePerState[mode_lib->vba.VoltageLevel][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3742 mode_lib->vba.ODMCombineEnabled[k] = dm_odm_combine_mode_disabled; in dml32_ModeSupportAndSystemConfigurationFull()
3745 mode_lib->vba.DSCEnabled[k] = mode_lib->vba.RequiresDSC[mode_lib->vba.VoltageLevel][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3746 mode_lib->vba.FECEnable[k] = mode_lib->vba.RequiresFEC[mode_lib->vba.VoltageLevel][k]; in dml32_ModeSupportAndSystemConfigurationFull()
3747 mode_lib->vba.OutputBpp[k] = mode_lib->vba.OutputBppPerState[mode_lib->vba.VoltageLevel][k]; in dml32_ModeSupportAndSystemConfigurationFull()