12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519
#ifndef __DML2_CORE_SHARED_TYPES_H__
#define __DML2_CORE_SHARED_TYPES_H__
#include "dml2_external_lib_deps.h"
#include "dml_top_display_cfg_types.h"
#include "dml_top_types.h"
#include "lib_frl_cap_check.h"
#define __DML_VBA_DEBUG__
#define __DML2_CALCS_MAX_VRATIO_PRE_OTO__ 4.0 //<brief max vratio for one-to-one prefetch bw scheduling
#define __DML2_CALCS_MAX_VRATIO_PRE_EQU__ 6.0 //<brief max vratio for equalized prefetch bw scheduling
#define __DML2_CALCS_MAX_VRATIO_PRE__ 8.0 //<brief max prefetch vratio register limit
#define __DML2_CALCS_MAX_VSTARTUP__ 1023.0 // <brief max vstartup lines supported by hardware
#define __DML2_CALCS_DPP_INVALID__ 0
#define __DML2_CALCS_DCFCLK_FACTOR__ 1.15 //<brief fudge factor for min dcfclk calclation
#define __DML2_CALCS_PIPE_NO_PLANE__ 99
struct dml2_core_ip_params {
unsigned int vblank_nom_default_us;
unsigned int remote_iommu_outstanding_translations;
unsigned int rob_buffer_size_kbytes;
unsigned int config_return_buffer_size_in_kbytes;
unsigned int config_return_buffer_segment_size_in_kbytes;
unsigned int compressed_buffer_segment_size_in_kbytes;
unsigned int meta_fifo_size_in_kentries;
unsigned int dpte_buffer_size_in_pte_reqs_luma;
unsigned int dpte_buffer_size_in_pte_reqs_chroma;
unsigned int pixel_chunk_size_kbytes;
unsigned int alpha_pixel_chunk_size_kbytes;
unsigned int min_pixel_chunk_size_bytes;
unsigned int writeback_chunk_size_kbytes;
unsigned int line_buffer_size_bits;
unsigned int max_line_buffer_lines;
unsigned int writeback_interface_buffer_size_kbytes;
unsigned int max_num_dpp;
unsigned int max_num_opp;
unsigned int max_num_otg;
unsigned int TDLUT_33cube_count;
unsigned int max_num_wb;
unsigned int max_dchub_pscl_bw_pix_per_clk;
unsigned int max_pscl_lb_bw_pix_per_clk;
unsigned int max_lb_vscl_bw_pix_per_clk;
unsigned int max_vscl_hscl_bw_pix_per_clk;
double max_hscl_ratio;
double max_vscl_ratio;
unsigned int max_hscl_taps;
unsigned int max_vscl_taps;
unsigned int odm_combine_support_mask;
unsigned int num_dsc;
unsigned int maximum_dsc_slices_per_pipe;
unsigned int maximum_dsc_bits_per_component;
unsigned int maximum_pixels_per_line_per_dsc_unit;
bool dsc422_native_support;
bool cursor_64bpp_support;
double dispclk_ramp_margin_percent;
unsigned int dppclk_delay_subtotal;
unsigned int dppclk_delay_scl;
unsigned int dppclk_delay_scl_lb_only;
unsigned int dppclk_delay_cnvc_formatter;
unsigned int dppclk_delay_cnvc_cursor;
unsigned int cursor_buffer_size;
unsigned int cursor_chunk_size;
unsigned int dispclk_delay_subtotal;
bool dynamic_metadata_vm_enabled;
unsigned int max_inter_dcn_tile_repeaters;
unsigned int max_num_hdmi_frl_outputs;
unsigned int max_num_dp2p0_outputs;
unsigned int max_num_dp2p0_streams;
bool dcc_supported;
bool ptoi_supported;
double writeback_max_hscl_ratio;
double writeback_max_vscl_ratio;
double writeback_min_hscl_ratio;
double writeback_min_vscl_ratio;
unsigned int writeback_max_hscl_taps;
unsigned int writeback_max_vscl_taps;
unsigned int writeback_line_buffer_buffer_size;
unsigned int words_per_channel;
bool imall_supported;
unsigned int max_flip_time_us;
unsigned int max_flip_time_lines;
unsigned int subvp_swath_height_margin_lines;
unsigned int subvp_fw_processing_delay_us;
unsigned int subvp_pstate_allow_width_us;
unsigned int alt_chan_fw_delay_us;
bool dcn_mrq_present;
unsigned int zero_size_buffer_entries;
unsigned int compbuf_reserved_space_zs;
unsigned int dcc_meta_buffer_size_bytes;
unsigned int meta_chunk_size_kbytes;
unsigned int min_meta_chunk_size_bytes;
unsigned int dchub_arb_to_ret_delay;
unsigned int hostvm_mode;
unsigned int fams2_max_allow_delay_us;
unsigned int fams2_min_allow_width_us;
unsigned int ppt_max_allow_delay_us;
unsigned int temp_read_max_allow_delay_us;
bool use_legacy_dsc_delay_formula;
};
struct dml2_core_internal_DmlPipe {
double Dppclk;
double Dispclk;
double PixelClock;
double DCFClkDeepSleep;
unsigned int DPPPerSurface;
bool ScalerEnabled;
bool UPSPEnabled;
unsigned int UPSPVTaps;
enum dml2_sample_positioning UPSPSamplePositioning;
enum dml2_rotation_angle RotationAngle;
bool mirrored;
unsigned int ViewportHeight;
unsigned int ViewportHeightC;
unsigned int BlockWidth256BytesY;
unsigned int BlockHeight256BytesY;
unsigned int BlockWidth256BytesC;
unsigned int BlockHeight256BytesC;
unsigned int BlockWidthY;
unsigned int BlockHeightY;
unsigned int BlockWidthC;
unsigned int BlockHeightC;
unsigned int InterlaceEnable;
unsigned int NumberOfCursors;
unsigned int VBlank;
unsigned int HTotal;
unsigned int HActive;
bool DCCEnable;
enum dml2_odm_mode ODMMode;
enum dml2_source_format_class SourcePixelFormat;
enum dml2_swizzle_mode SurfaceTiling;
unsigned int BytePerPixelY;
unsigned int BytePerPixelC;
bool ProgressiveToInterlaceUnitInOPP;
double VRatio;
double VRatioChroma;
unsigned int VTaps;
unsigned int VTapsChroma;
unsigned int PitchY;
unsigned int PitchC;
bool ViewportStationary;
unsigned int ViewportXStart;
unsigned int ViewportYStart;
unsigned int ViewportXStartC;
unsigned int ViewportYStartC;
bool FORCE_ONE_ROW_FOR_FRAME;
unsigned int SwathHeightY;
unsigned int SwathHeightC;
unsigned int DCCMetaPitchY;
unsigned int DCCMetaPitchC;
};
enum dml2_core_internal_request_type {
dml2_core_internal_request_type_256_bytes = 0,
dml2_core_internal_request_type_128_bytes_non_contiguous = 1,
dml2_core_internal_request_type_128_bytes_contiguous = 2,
dml2_core_internal_request_type_na = 3
};
enum dml2_core_internal_bw_type {
dml2_core_internal_bw_sdp = 0,
dml2_core_internal_bw_dram = 1,
dml2_core_internal_bw_max
};
enum dml2_core_internal_soc_state_type {
dml2_core_internal_soc_state_sys_active = 0,
dml2_core_internal_soc_state_svp_prefetch = 1,
dml2_core_internal_soc_state_sys_idle = 2,
dml2_core_internal_soc_state_max
};
enum dml2_core_internal_output_type {
dml2_core_internal_output_type_unknown = 0,
dml2_core_internal_output_type_dp = 1,
dml2_core_internal_output_type_edp = 2,
dml2_core_internal_output_type_dp2p0 = 3,
dml2_core_internal_output_type_hdmi = 4,
dml2_core_internal_output_type_hdmifrl = 5
};
enum dml2_core_internal_output_type_rate {
dml2_core_internal_output_rate_unknown = 0,
dml2_core_internal_output_rate_dp_rate_hbr = 1,
dml2_core_internal_output_rate_dp_rate_hbr2 = 2,
dml2_core_internal_output_rate_dp_rate_hbr3 = 3,
dml2_core_internal_output_rate_dp_rate_uhbr10 = 4,
dml2_core_internal_output_rate_dp_rate_uhbr13p5 = 5,
dml2_core_internal_output_rate_dp_rate_uhbr20 = 6,
dml2_core_internal_output_rate_hdmi_rate_3x3 = 7,
dml2_core_internal_output_rate_hdmi_rate_6x3 = 8,
dml2_core_internal_output_rate_hdmi_rate_6x4 = 9,
dml2_core_internal_output_rate_hdmi_rate_8x4 = 10,
dml2_core_internal_output_rate_hdmi_rate_10x4 = 11,
dml2_core_internal_output_rate_hdmi_rate_12x4 = 12,
dml2_core_internal_output_rate_hdmi_rate_16x4 = 13,
dml2_core_internal_output_rate_hdmi_rate_20x4 = 14
};
struct dml2_core_internal_watermarks {
double UrgentWatermark;
double WritebackUrgentWatermark;
double DRAMClockChangeWatermark;
double FCLKChangeWatermark;
double WritebackDRAMClockChangeWatermark;
double WritebackFCLKChangeWatermark;
double StutterExitWatermark;
double StutterEnterPlusExitWatermark;
double LowPowerStutterExitWatermark;
double LowPowerStutterEnterPlusExitWatermark;
double Z8StutterExitWatermark;
double Z8StutterEnterPlusExitWatermark;
double USRRetrainingWatermark;
double temp_read_or_ppt_watermark_us;
double writeback_temp_read_or_ppt_watermark_us;
};
struct dml2_core_internal_mode_support_info {
bool ImmediateFlipSupport;
bool WritebackLatencySupport;
bool ScaleRatioAndTapsSupport;
bool SourceFormatPixelAndScanSupport;
bool P2IWith420;
bool DSCSlicesODMModeSupported;
bool DSCOnlyIfNecessaryWithBPP;
bool DSC422NativeNotSupported;
bool LinkRateDoesNotMatchDPVersion;
bool LinkRateForMultistreamNotIndicated;
bool BPPForMultistreamNotIndicated;
bool MultistreamWithHDMIOreDP;
bool MSOOrODMSplitWithNonDPLink;
bool NotEnoughLanesForMSO;
bool NumberOfOTGSupport;
bool NumberOfTDLUT33cubeSupport;
bool NumberOfHDMIFRLSupport;
bool NumberOfDP2p0Support;
bool WritebackScaleRatioAndTapsSupport;
bool CursorSupport;
bool PitchSupport;
bool ViewportExceedsSurface;
bool ImmediateFlipOrHostVMAndPStateWithMALLFullFrameOrPhantomPipe;
bool InvalidCombinationOfMALLUseForPStateAndStaticScreen;
bool InvalidCombinationOfMALLUseForPState;
bool ExceededMALLSize;
bool EnoughWritebackUnits;
bool ExceededMultistreamSlots;
bool NotEnoughDSCUnits;
bool NotEnoughDSCSlices;
bool PixelsPerLinePerDSCUnitSupport;
bool DSCCLKRequiredMoreThanSupported;
bool DTBCLKRequiredMoreThanSupported;
bool LinkCapacitySupport;
bool ROBSupport;
bool OutstandingRequestsSupport;
bool OutstandingRequestsUrgencyAvoidance;
bool PTEBufferSizeNotExceeded;
bool DCCMetaBufferSizeNotExceeded;
enum dml2_pstate_change_support DRAMClockChangeSupport[DML2_MAX_PLANES];
enum dml2_pstate_change_support FCLKChangeSupport[DML2_MAX_PLANES];
enum dml2_pstate_change_support temp_read_or_ppt_support[DML2_MAX_PLANES];
bool global_dram_clock_change_support_required;
bool global_dram_clock_change_supported;
bool global_fclk_change_supported;
bool global_temp_read_or_ppt_supported;
bool fclk_pstate_schedule_admissible;
bool temp_read_pstate_schedule_admissible;
bool ppt_pstate_schedule_admissible;
bool USRRetrainingSupport;
bool AvgBandwidthSupport;
bool UrgVactiveBandwidthSupport;
bool EnoughUrgentLatencyHidingSupport;
bool PrefetchScheduleSupported;
bool PrefetchSupported;
bool PrefetchBandwidthSupported;
bool DynamicMetadataSupported;
bool VRatioInPrefetchSupported;
bool DISPCLK_DPPCLK_Support;
bool TotalAvailablePipesSupport;
bool ODMSupport;
bool ModeSupport;
bool ViewportSizeSupport;
bool MPCCombineEnable[DML2_MAX_PLANES];
enum dml2_odm_mode ODMMode[DML2_MAX_PLANES];
unsigned int DPPPerSurface[DML2_MAX_PLANES];
bool DSCEnabled[DML2_MAX_PLANES];
bool FECEnabled[DML2_MAX_PLANES];
unsigned int NumberOfDSCSlices[DML2_MAX_PLANES];
double OutputBpp[DML2_MAX_PLANES];
enum dml2_core_internal_output_type OutputType[DML2_MAX_PLANES];
enum dml2_core_internal_output_type_rate OutputRate[DML2_MAX_PLANES];
unsigned int AlignedYPitch[DML2_MAX_PLANES];
unsigned int AlignedCPitch[DML2_MAX_PLANES];
unsigned int AlignedDCCMetaPitchY[DML2_MAX_PLANES];
unsigned int AlignedDCCMetaPitchC[DML2_MAX_PLANES];
unsigned int request_size_bytes_luma[DML2_MAX_PLANES];
unsigned int request_size_bytes_chroma[DML2_MAX_PLANES];
enum dml2_core_internal_request_type RequestLuma[DML2_MAX_PLANES];
enum dml2_core_internal_request_type RequestChroma[DML2_MAX_PLANES];
unsigned int DCCYMaxUncompressedBlock[DML2_MAX_PLANES];
unsigned int DCCYMaxCompressedBlock[DML2_MAX_PLANES];
unsigned int DCCYIndependentBlock[DML2_MAX_PLANES];
unsigned int DCCCMaxUncompressedBlock[DML2_MAX_PLANES];
unsigned int DCCCMaxCompressedBlock[DML2_MAX_PLANES];
unsigned int DCCCIndependentBlock[DML2_MAX_PLANES];
double avg_bandwidth_available_min[dml2_core_internal_soc_state_max];
double avg_bandwidth_available[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_available_min_latency[dml2_core_internal_soc_state_max];
double urg_bandwidth_available_min[dml2_core_internal_soc_state_max];
double urg_bandwidth_available[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_available_vm_only[dml2_core_internal_soc_state_max];
double urg_bandwidth_available_pixel_and_vm[dml2_core_internal_soc_state_max];
double avg_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_vactive_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_required_qual[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_required_flip[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double non_urg_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double non_urg_bandwidth_required_flip[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
bool avg_bandwidth_support_ok[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
struct dml2_memory_path_bandwidth bandwidth_upper_bound;
double max_urgent_latency_us;
double max_non_urgent_latency_us;
double avg_non_urgent_latency_us;
double avg_urgent_latency_us;
double df_response_time_us;
bool incorrect_imall_usage;
bool g6_temp_read_support;
struct dml2_core_internal_watermarks watermarks;
bool dcfclk_support;
bool qos_bandwidth_support;
bool alternate_channel_size_support;
};
struct dml2_core_internal_mode_support {
unsigned int state_idx;
unsigned int qos_param_index;
unsigned int active_min_uclk_dpm_index;
unsigned int num_active_planes;
double RequiredDISPCLK;
double RequiredDPPCLK[DML2_MAX_PLANES];
double RequiredDISPCLKPerSurface[DML2_MAX_PLANES];
double RequiredDTBCLK[DML2_MAX_PLANES];
double required_dscclk_freq_mhz[DML2_MAX_PLANES];
double FabricClock;
double SOCCLK;
double DCFCLK;
double GlobalDPPCLK;
double GlobalDTBCLK;
double uclk_freq_mhz;
double dram_bw_mbps;
double max_dram_bw_mbps;
double min_available_urgent_bandwidth_MBps;
double MaxFabricClock;
double MaxDCFCLK;
double max_dispclk_freq_mhz;
double max_dppclk_freq_mhz;
double max_dscclk_freq_mhz;
bool NoTimeForPrefetch[DML2_MAX_PLANES];
bool NoTimeForDynamicMetadata[DML2_MAX_PLANES];
struct dml2_core_internal_mode_support_info support;
unsigned int MaxTotalDETInKByte;
unsigned int NomDETInKByte;
unsigned int MinCompressedBufferSizeInKByte;
unsigned int DETBufferSizeInKByte[DML2_MAX_PLANES];
unsigned int DETBufferSizeY[DML2_MAX_PLANES];
unsigned int DETBufferSizeC[DML2_MAX_PLANES];
unsigned int SwathHeightY[DML2_MAX_PLANES];
unsigned int SwathHeightC[DML2_MAX_PLANES];
unsigned int SwathWidthY[DML2_MAX_PLANES];
unsigned int SwathWidthC[DML2_MAX_PLANES];
unsigned int TotImmediateFlipBytes;
bool DCCEnabledInAnySurface;
double WritebackRequiredDISPCLK;
double TimeCalc;
double TWait[DML2_MAX_PLANES];
bool UnboundedRequestEnabled;
unsigned int compbuf_reserved_space_64b;
bool hw_debug5;
unsigned int CompressedBufferSizeInkByte;
double VRatioPreY[DML2_MAX_PLANES];
double VRatioPreC[DML2_MAX_PLANES];
unsigned int req_per_swath_ub_l[DML2_MAX_PLANES];
unsigned int req_per_swath_ub_c[DML2_MAX_PLANES];
unsigned int swath_width_luma_ub[DML2_MAX_PLANES];
unsigned int swath_width_chroma_ub[DML2_MAX_PLANES];
unsigned int RequiredSlots[DML2_MAX_PLANES];
unsigned int vm_bytes[DML2_MAX_PLANES];
unsigned int DPTEBytesPerRow[DML2_MAX_PLANES];
unsigned int PrefetchLinesY[DML2_MAX_PLANES];
unsigned int PrefetchLinesC[DML2_MAX_PLANES];
unsigned int MaxNumSwathY[DML2_MAX_PLANES];
unsigned int MaxNumSwathC[DML2_MAX_PLANES];
unsigned int PrefillY[DML2_MAX_PLANES];
unsigned int PrefillC[DML2_MAX_PLANES];
unsigned int full_swath_bytes_l[DML2_MAX_PLANES];
unsigned int full_swath_bytes_c[DML2_MAX_PLANES];
bool use_one_row_for_frame[DML2_MAX_PLANES];
bool use_one_row_for_frame_flip[DML2_MAX_PLANES];
double dst_y_prefetch[DML2_MAX_PLANES];
double LinesForVM[DML2_MAX_PLANES];
double LinesForDPTERow[DML2_MAX_PLANES];
unsigned int SwathWidthYSingleDPP[DML2_MAX_PLANES];
unsigned int SwathWidthCSingleDPP[DML2_MAX_PLANES];
unsigned int BytePerPixelY[DML2_MAX_PLANES];
unsigned int BytePerPixelC[DML2_MAX_PLANES];
double BytePerPixelInDETY[DML2_MAX_PLANES];
double BytePerPixelInDETC[DML2_MAX_PLANES];
unsigned int Read256BlockHeightY[DML2_MAX_PLANES];
unsigned int Read256BlockWidthY[DML2_MAX_PLANES];
unsigned int Read256BlockHeightC[DML2_MAX_PLANES];
unsigned int Read256BlockWidthC[DML2_MAX_PLANES];
unsigned int MacroTileHeightY[DML2_MAX_PLANES];
unsigned int MacroTileHeightC[DML2_MAX_PLANES];
unsigned int MacroTileWidthY[DML2_MAX_PLANES];
unsigned int MacroTileWidthC[DML2_MAX_PLANES];
bool surf_linear128_l[DML2_MAX_PLANES];
bool surf_linear128_c[DML2_MAX_PLANES];
double PSCL_FACTOR[DML2_MAX_PLANES];
double PSCL_FACTOR_CHROMA[DML2_MAX_PLANES];
double MaximumSwathWidthLuma[DML2_MAX_PLANES];
double MaximumSwathWidthChroma[DML2_MAX_PLANES];
double Tno_bw[DML2_MAX_PLANES];
double Tno_bw_flip[DML2_MAX_PLANES];
double dst_y_per_vm_flip[DML2_MAX_PLANES];
double dst_y_per_row_flip[DML2_MAX_PLANES];
double WritebackDelayTime[DML2_MAX_PLANES];
unsigned int dpte_group_bytes[DML2_MAX_PLANES];
unsigned int dpte_row_height[DML2_MAX_PLANES];
unsigned int dpte_row_height_chroma[DML2_MAX_PLANES];
double UrgLatency;
double TripToMemory;
double UrgentBurstFactorCursor[DML2_MAX_PLANES];
double UrgentBurstFactorCursorPre[DML2_MAX_PLANES];
double UrgentBurstFactorLuma[DML2_MAX_PLANES];
double UrgentBurstFactorLumaPre[DML2_MAX_PLANES];
double UrgentBurstFactorChroma[DML2_MAX_PLANES];
double UrgentBurstFactorChromaPre[DML2_MAX_PLANES];
double MaximumSwathWidthInLineBufferLuma;
double MaximumSwathWidthInLineBufferChroma;
double ExtraLatency;
double ExtraLatency_sr;
double ExtraLatencyPrefetch;
double dcc_dram_bw_nom_overhead_factor_p0[DML2_MAX_PLANES];
double dcc_dram_bw_nom_overhead_factor_p1[DML2_MAX_PLANES];
double dcc_dram_bw_pref_overhead_factor_p0[DML2_MAX_PLANES];
double dcc_dram_bw_pref_overhead_factor_p1[DML2_MAX_PLANES];
double mall_prefetch_sdp_overhead_factor[DML2_MAX_PLANES];
double mall_prefetch_dram_overhead_factor[DML2_MAX_PLANES];
bool is_using_mall_for_ss[DML2_MAX_PLANES];
unsigned int meta_row_width_chroma[DML2_MAX_PLANES];
unsigned int PixelPTEReqHeightC[DML2_MAX_PLANES];
bool PTE_BUFFER_MODE[DML2_MAX_PLANES];
unsigned int meta_req_height_chroma[DML2_MAX_PLANES];
unsigned int meta_pte_bytes_per_frame_ub_c[DML2_MAX_PLANES];
unsigned int dpde0_bytes_per_frame_ub_c[DML2_MAX_PLANES];
unsigned int dpte_row_width_luma_ub[DML2_MAX_PLANES];
unsigned int meta_req_width[DML2_MAX_PLANES];
unsigned int meta_row_width[DML2_MAX_PLANES];
unsigned int PixelPTEReqWidthY[DML2_MAX_PLANES];
unsigned int dpte_row_height_linear[DML2_MAX_PLANES];
unsigned int PTERequestSizeY[DML2_MAX_PLANES];
unsigned int dpte_row_width_chroma_ub[DML2_MAX_PLANES];
unsigned int PixelPTEReqWidthC[DML2_MAX_PLANES];
unsigned int meta_pte_bytes_per_frame_ub_l[DML2_MAX_PLANES];
unsigned int dpte_row_height_linear_chroma[DML2_MAX_PLANES];
unsigned int PTERequestSizeC[DML2_MAX_PLANES];
unsigned int meta_req_height[DML2_MAX_PLANES];
unsigned int dpde0_bytes_per_frame_ub_l[DML2_MAX_PLANES];
unsigned int meta_req_width_chroma[DML2_MAX_PLANES];
unsigned int PixelPTEReqHeightY[DML2_MAX_PLANES];
unsigned int BIGK_FRAGMENT_SIZE[DML2_MAX_PLANES];
unsigned int vm_group_bytes[DML2_MAX_PLANES];
unsigned int VReadyOffsetPix[DML2_MAX_PLANES];
unsigned int VUpdateOffsetPix[DML2_MAX_PLANES];
unsigned int VUpdateWidthPix[DML2_MAX_PLANES];
double TSetup[DML2_MAX_PLANES];
double Tdmdl_vm_raw[DML2_MAX_PLANES];
double Tdmdl_raw[DML2_MAX_PLANES];
unsigned int VStartupMin[DML2_MAX_PLANES];
double MaxActiveDRAMClockChangeLatencySupported[DML2_MAX_PLANES];
double MaxActiveFCLKChangeLatencySupported;
bool RequiresDSC[DML2_MAX_PLANES];
bool RequiresFEC[DML2_MAX_PLANES];
double OutputBpp[DML2_MAX_PLANES];
double DesiredOutputBpp[DML2_MAX_PLANES];
double PixelClockBackEnd[DML2_MAX_PLANES];
unsigned int DSCDelay[DML2_MAX_PLANES];
bool use_legacy_dsc_delay_formula;
enum dml2_core_internal_output_type OutputType[DML2_MAX_PLANES];
enum dml2_core_internal_output_type_rate OutputRate[DML2_MAX_PLANES];
bool TotalAvailablePipesSupportNoDSC;
bool TotalAvailablePipesSupportDSC;
unsigned int NumberOfDPPNoDSC;
unsigned int NumberOfDPPDSC;
enum dml2_odm_mode ODMModeNoDSC;
enum dml2_odm_mode ODMModeDSC;
double RequiredDISPCLKPerSurfaceNoDSC;
double RequiredDISPCLKPerSurfaceDSC;
unsigned int EstimatedNumberOfDSCSlices[DML2_MAX_PLANES];
double BandwidthAvailableForImmediateFlip;
double vactive_sw_bw_l[DML2_MAX_PLANES];
double vactive_sw_bw_c[DML2_MAX_PLANES];
double WriteBandwidth[DML2_MAX_PLANES][DML2_MAX_WRITEBACK];
double RequiredPrefetchPixelDataBWLuma[DML2_MAX_PLANES];
double RequiredPrefetchPixelDataBWChroma[DML2_MAX_PLANES];
double RequiredPrefetchBWMax[DML2_MAX_PLANES];
double cursor_bw[DML2_MAX_PLANES];
double prefetch_cursor_bw[DML2_MAX_PLANES];
double prefetch_vmrow_bw[DML2_MAX_PLANES];
double final_flip_bw[DML2_MAX_PLANES];
double meta_row_bw[DML2_MAX_PLANES];
unsigned int meta_row_bytes[DML2_MAX_PLANES];
double dpte_row_bw[DML2_MAX_PLANES];
double excess_vactive_fill_bw_l[DML2_MAX_PLANES];
double excess_vactive_fill_bw_c[DML2_MAX_PLANES];
double surface_avg_vactive_required_bw[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max][DML2_MAX_PLANES];
double surface_peak_required_bw[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max][DML2_MAX_PLANES];
enum dml2_odm_mode ODMMode[DML2_MAX_PLANES];
unsigned int SurfaceSizeInMALL[DML2_MAX_PLANES];
unsigned int NoOfDPP[DML2_MAX_PLANES];
unsigned int NoOfOPP[DML2_MAX_PLANES];
bool MPCCombine[DML2_MAX_PLANES];
double dcfclk_deepsleep;
double MinDPPCLKUsingSingleDPP[DML2_MAX_PLANES];
bool SingleDPPViewportSizeSupportPerSurface[DML2_MAX_PLANES];
bool ImmediateFlipSupportedForPipe[DML2_MAX_PLANES];
bool NotEnoughUrgentLatencyHiding[DML2_MAX_PLANES];
bool NotEnoughUrgentLatencyHidingPre[DML2_MAX_PLANES];
bool PTEBufferSizeNotExceeded[DML2_MAX_PLANES];
bool DCCMetaBufferSizeNotExceeded[DML2_MAX_PLANES];
unsigned int TotalNumberOfActiveDPP;
unsigned int TotalNumberOfActiveOPP;
unsigned int TotalNumberOfSingleDPPSurfaces;
unsigned int TotalNumberOfDCCActiveDPP;
unsigned int Total3dlutActive;
unsigned int SubViewportLinesNeededInMALL[DML2_MAX_PLANES];
double VActiveLatencyHidingMargin[DML2_MAX_PLANES];
double VActiveLatencyHidingUs[DML2_MAX_PLANES];
unsigned int MaxVStartupLines[DML2_MAX_PLANES];
double pstate_vactive_det_fill_delay_us[dml2_pstate_type_count][DML2_MAX_PLANES];
unsigned int num_mcaches_l[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_l[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_per_channel_l[DML2_MAX_PLANES];
unsigned int mcache_offsets_l[DML2_MAX_PLANES][DML2_MAX_MCACHES + 1];
unsigned int mcache_shift_granularity_l[DML2_MAX_PLANES];
unsigned int num_mcaches_c[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_c[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_per_channel_c[DML2_MAX_PLANES];
unsigned int mcache_offsets_c[DML2_MAX_PLANES][DML2_MAX_MCACHES + 1];
unsigned int mcache_shift_granularity_c[DML2_MAX_PLANES];
bool mall_comb_mcache_l[DML2_MAX_PLANES];
bool mall_comb_mcache_c[DML2_MAX_PLANES];
bool lc_comb_mcache[DML2_MAX_PLANES];
unsigned int vmpg_width_y[DML2_MAX_PLANES];
unsigned int vmpg_height_y[DML2_MAX_PLANES];
unsigned int vmpg_width_c[DML2_MAX_PLANES];
unsigned int vmpg_height_c[DML2_MAX_PLANES];
unsigned int meta_row_height_luma[DML2_MAX_PLANES];
unsigned int meta_row_height_chroma[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_l[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_c[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_l[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_c[DML2_MAX_PLANES];
unsigned int pstate_bytes_required_l[dml2_pstate_type_count][DML2_MAX_PLANES];
unsigned int pstate_bytes_required_c[dml2_pstate_type_count][DML2_MAX_PLANES];
unsigned int cursor_bytes_per_chunk[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_line[DML2_MAX_PLANES];
unsigned int MaximumVStartup[DML2_MAX_PLANES];
double HostVMInefficiencyFactor;
double HostVMInefficiencyFactorPrefetch;
unsigned int tdlut_pte_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_groups_per_2row_ub[DML2_MAX_PLANES];
double tdlut_opt_time[DML2_MAX_PLANES];
double tdlut_drain_time[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_group[DML2_MAX_PLANES];
double Tvm_trips_flip[DML2_MAX_PLANES];
double Tr0_trips_flip[DML2_MAX_PLANES];
double Tvm_trips_flip_rounded[DML2_MAX_PLANES];
double Tr0_trips_flip_rounded[DML2_MAX_PLANES];
unsigned int DSTYAfterScaler[DML2_MAX_PLANES];
unsigned int DSTXAfterScaler[DML2_MAX_PLANES];
enum dml2_pstate_method uclk_pstate_switch_modes[DML2_MAX_PLANES];
unsigned int svp0_max_bytes;
unsigned int svp1_max_bytes;
unsigned int svp0_max_bytes_per_dpp[DML2_MAX_PLANES];
unsigned int svp0_max_bytes_per_dpp_c[DML2_MAX_PLANES];
unsigned int svp1_max_bytes_per_dpp[DML2_MAX_PLANES];
unsigned int svp1_max_bytes_per_dpp_c[DML2_MAX_PLANES];
unsigned int svp0_dst_lines[DML2_MAX_PLANES];
unsigned int svp1_dst_lines[DML2_MAX_PLANES];
unsigned int svp_req_limit[DML2_MAX_PLANES];
unsigned int nom_req_limit_alt[DML2_MAX_PLANES];
unsigned int min_lead_dst_lines[DML2_MAX_PLANES];
unsigned int total_swaths[DML2_MAX_PLANES];
unsigned int total_swaths_c[DML2_MAX_PLANES];
unsigned int prefetch_swaths[DML2_MAX_PLANES];
unsigned int prefetch_swaths_c[DML2_MAX_PLANES];
double prefetch_hdl_delta[DML2_MAX_PLANES];
double recout_hdl_delta[DML2_MAX_PLANES];
double prefetch_hdl_delta_c[DML2_MAX_PLANES];
double recout_hdl_delta_c[DML2_MAX_PLANES];
unsigned int max_prefetch_in_lines[DML2_MAX_PLANES];
double lsdma_bw_req_for_alt_kbps;
unsigned int timing_group_id[DML2_MAX_PLANES];
unsigned int timing_group_count;
bool fclk_pstate_required;
bool ppt_pstate_required;
bool temp_read_pstate_required;
double fclk_pstate_allow_start_us[DML2_MAX_PLANES];
double fclk_pstate_allow_end_us[DML2_MAX_PLANES];
double ppt_pstate_allow_start_us[DML2_MAX_PLANES];
double ppt_pstate_allow_end_us[DML2_MAX_PLANES];
double temp_read_pstate_allow_start_us[DML2_MAX_PLANES];
double temp_read_pstate_allow_end_us[DML2_MAX_PLANES];
};
struct dml2_core_internal_mode_program {
unsigned int qos_param_index;
unsigned int active_min_uclk_dpm_index;
double FabricClock;
double dram_bw_mbps;
double min_available_urgent_bandwidth_MBps;
double uclk_freq_mhz;
unsigned int NoOfDPP[DML2_MAX_PLANES];
enum dml2_odm_mode ODMMode[DML2_MAX_PLANES];
double UrgentLatency;
double TripToMemory;
double MetaTripToMemory;
unsigned int VInitPreFillY[DML2_MAX_PLANES];
unsigned int VInitPreFillC[DML2_MAX_PLANES];
unsigned int MaxNumSwathY[DML2_MAX_PLANES];
unsigned int MaxNumSwathC[DML2_MAX_PLANES];
unsigned int full_swath_bytes_l[DML2_MAX_PLANES];
unsigned int full_swath_bytes_c[DML2_MAX_PLANES];
double BytePerPixelInDETY[DML2_MAX_PLANES];
double BytePerPixelInDETC[DML2_MAX_PLANES];
unsigned int BytePerPixelY[DML2_MAX_PLANES];
unsigned int BytePerPixelC[DML2_MAX_PLANES];
unsigned int SwathWidthY[DML2_MAX_PLANES];
unsigned int SwathWidthC[DML2_MAX_PLANES];
unsigned int req_per_swath_ub_l[DML2_MAX_PLANES];
unsigned int req_per_swath_ub_c[DML2_MAX_PLANES];
unsigned int SwathWidthSingleDPPY[DML2_MAX_PLANES];
unsigned int SwathWidthSingleDPPC[DML2_MAX_PLANES];
double vactive_sw_bw_l[DML2_MAX_PLANES];
double vactive_sw_bw_c[DML2_MAX_PLANES];
double excess_vactive_fill_bw_l[DML2_MAX_PLANES];
double excess_vactive_fill_bw_c[DML2_MAX_PLANES];
unsigned int PixelPTEBytesPerRow[DML2_MAX_PLANES];
unsigned int vm_bytes[DML2_MAX_PLANES];
unsigned int PrefetchSourceLinesY[DML2_MAX_PLANES];
double RequiredPrefetchPixelDataBWLuma[DML2_MAX_PLANES];
double RequiredPrefetchPixelDataBWChroma[DML2_MAX_PLANES];
unsigned int PrefetchSourceLinesC[DML2_MAX_PLANES];
double PSCL_THROUGHPUT[DML2_MAX_PLANES];
double PSCL_THROUGHPUT_CHROMA[DML2_MAX_PLANES];
unsigned int DSCDelay[DML2_MAX_PLANES];
bool use_legacy_dsc_delay_formula;
double DPPCLKUsingSingleDPP[DML2_MAX_PLANES];
unsigned int Read256BlockHeightY[DML2_MAX_PLANES];
unsigned int Read256BlockWidthY[DML2_MAX_PLANES];
unsigned int Read256BlockHeightC[DML2_MAX_PLANES];
unsigned int Read256BlockWidthC[DML2_MAX_PLANES];
unsigned int MacroTileHeightY[DML2_MAX_PLANES];
unsigned int MacroTileHeightC[DML2_MAX_PLANES];
unsigned int MacroTileWidthY[DML2_MAX_PLANES];
unsigned int MacroTileWidthC[DML2_MAX_PLANES];
double MaximumSwathWidthLuma[DML2_MAX_PLANES];
double MaximumSwathWidthChroma[DML2_MAX_PLANES];
bool surf_linear128_l[DML2_MAX_PLANES];
bool surf_linear128_c[DML2_MAX_PLANES];
unsigned int SurfaceSizeInTheMALL[DML2_MAX_PLANES];
double VRatioPrefetchY[DML2_MAX_PLANES];
double VRatioPrefetchC[DML2_MAX_PLANES];
double Tno_bw[DML2_MAX_PLANES];
double Tno_bw_flip[DML2_MAX_PLANES];
double final_flip_bw[DML2_MAX_PLANES];
double prefetch_vmrow_bw[DML2_MAX_PLANES];
double cursor_bw[DML2_MAX_PLANES];
double prefetch_cursor_bw[DML2_MAX_PLANES];
double WritebackDelay[DML2_MAX_PLANES];
unsigned int dpte_row_height[DML2_MAX_PLANES];
unsigned int dpte_row_height_linear[DML2_MAX_PLANES];
unsigned int dpte_row_width_luma_ub[DML2_MAX_PLANES];
unsigned int dpte_row_width_chroma_ub[DML2_MAX_PLANES];
unsigned int dpte_row_height_chroma[DML2_MAX_PLANES];
unsigned int dpte_row_height_linear_chroma[DML2_MAX_PLANES];
unsigned int vm_group_bytes[DML2_MAX_PLANES];
unsigned int dpte_group_bytes[DML2_MAX_PLANES];
double dpte_row_bw[DML2_MAX_PLANES];
double time_per_tdlut_group[DML2_MAX_PLANES];
double UrgentBurstFactorCursor[DML2_MAX_PLANES];
double UrgentBurstFactorCursorPre[DML2_MAX_PLANES];
double UrgentBurstFactorLuma[DML2_MAX_PLANES];
double UrgentBurstFactorLumaPre[DML2_MAX_PLANES];
double UrgentBurstFactorChroma[DML2_MAX_PLANES];
double UrgentBurstFactorChromaPre[DML2_MAX_PLANES];
double MaximumSwathWidthInLineBufferLuma;
double MaximumSwathWidthInLineBufferChroma;
unsigned int vmpg_width_y[DML2_MAX_PLANES];
unsigned int vmpg_height_y[DML2_MAX_PLANES];
unsigned int vmpg_width_c[DML2_MAX_PLANES];
unsigned int vmpg_height_c[DML2_MAX_PLANES];
double meta_row_bw[DML2_MAX_PLANES];
unsigned int meta_row_bytes[DML2_MAX_PLANES];
unsigned int meta_req_width[DML2_MAX_PLANES];
unsigned int meta_req_height[DML2_MAX_PLANES];
unsigned int meta_row_width[DML2_MAX_PLANES];
unsigned int meta_row_height[DML2_MAX_PLANES];
unsigned int meta_req_width_chroma[DML2_MAX_PLANES];
unsigned int meta_row_height_chroma[DML2_MAX_PLANES];
unsigned int meta_row_width_chroma[DML2_MAX_PLANES];
unsigned int meta_req_height_chroma[DML2_MAX_PLANES];
unsigned int swath_width_luma_ub[DML2_MAX_PLANES];
unsigned int swath_width_chroma_ub[DML2_MAX_PLANES];
unsigned int PixelPTEReqWidthY[DML2_MAX_PLANES];
unsigned int PixelPTEReqHeightY[DML2_MAX_PLANES];
unsigned int PTERequestSizeY[DML2_MAX_PLANES];
unsigned int PixelPTEReqWidthC[DML2_MAX_PLANES];
unsigned int PixelPTEReqHeightC[DML2_MAX_PLANES];
unsigned int PTERequestSizeC[DML2_MAX_PLANES];
double TWait[DML2_MAX_PLANES];
double Tdmdl_vm_raw[DML2_MAX_PLANES];
double Tdmdl_vm[DML2_MAX_PLANES];
double Tdmdl_raw[DML2_MAX_PLANES];
double Tdmdl[DML2_MAX_PLANES];
double TSetup[DML2_MAX_PLANES];
unsigned int dpde0_bytes_per_frame_ub_l[DML2_MAX_PLANES];
unsigned int dpde0_bytes_per_frame_ub_c[DML2_MAX_PLANES];
unsigned int meta_pte_bytes_per_frame_ub_l[DML2_MAX_PLANES];
unsigned int meta_pte_bytes_per_frame_ub_c[DML2_MAX_PLANES];
bool UnboundedRequestEnabled;
unsigned int CompressedBufferSizeInkByte;
unsigned int compbuf_reserved_space_64b;
bool hw_debug5;
unsigned int dcfclk_deep_sleep_hysteresis;
unsigned int min_return_latency_in_dcfclk;
bool NotEnoughUrgentLatencyHiding[DML2_MAX_PLANES];
bool NotEnoughUrgentLatencyHidingPre[DML2_MAX_PLANES];
double ExtraLatency;
double ExtraLatency_sr;
double ExtraLatencyPrefetch;
bool PrefetchAndImmediateFlipSupported;
double TotalDataReadBandwidth;
double BandwidthAvailableForImmediateFlip;
bool NotEnoughTimeForDynamicMetadata[DML2_MAX_PLANES];
bool use_one_row_for_frame[DML2_MAX_PLANES];
bool use_one_row_for_frame_flip[DML2_MAX_PLANES];
double TCalc;
unsigned int TotImmediateFlipBytes;
unsigned int MaxTotalDETInKByte;
unsigned int NomDETInKByte;
unsigned int MinCompressedBufferSizeInKByte;
double PixelClockBackEnd[DML2_MAX_PLANES];
double OutputBpp[DML2_MAX_PLANES];
bool dsc_enable[DML2_MAX_PLANES];
unsigned int num_dsc_slices[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_l[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_c[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_l[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_c[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_chunk[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_line[DML2_MAX_PLANES];
unsigned int MaxVStartupLines[DML2_MAX_PLANES];
double HostVMInefficiencyFactor;
double HostVMInefficiencyFactorPrefetch;
unsigned int tdlut_pte_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_groups_per_2row_ub[DML2_MAX_PLANES];
double tdlut_opt_time[DML2_MAX_PLANES];
double tdlut_drain_time[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_group[DML2_MAX_PLANES];
double Tvm_trips_flip[DML2_MAX_PLANES];
double Tr0_trips_flip[DML2_MAX_PLANES];
double Tvm_trips_flip_rounded[DML2_MAX_PLANES];
double Tr0_trips_flip_rounded[DML2_MAX_PLANES];
bool immediate_flip_required;
double SOCCLK;
double TotalWRBandwidth;
double max_urgent_latency_us;
double df_response_time_us;
enum dml2_pstate_method uclk_pstate_switch_modes[DML2_MAX_PLANES];
unsigned int svp0_max_bytes;
unsigned int svp1_max_bytes;
unsigned int svp0_max_bytes_per_dpp[DML2_MAX_PLANES];
unsigned int svp0_max_bytes_per_dpp_c[DML2_MAX_PLANES];
unsigned int svp1_max_bytes_per_dpp[DML2_MAX_PLANES];
unsigned int svp1_max_bytes_per_dpp_c[DML2_MAX_PLANES];
unsigned int svp0_dst_lines[DML2_MAX_PLANES];
unsigned int svp1_dst_lines[DML2_MAX_PLANES];
unsigned int min_lead_dst_lines[DML2_MAX_PLANES];
unsigned int svp_req_limit[DML2_MAX_PLANES];
unsigned int nom_req_limit_alt[DML2_MAX_PLANES];
unsigned int total_swaths[DML2_MAX_PLANES];
unsigned int total_swaths_c[DML2_MAX_PLANES];
unsigned int prefetch_swaths[DML2_MAX_PLANES];
unsigned int prefetch_swaths_c[DML2_MAX_PLANES];
double prefetch_hdl_delta[DML2_MAX_PLANES];
double recout_hdl_delta[DML2_MAX_PLANES];
double prefetch_hdl_delta_c[DML2_MAX_PLANES];
double recout_hdl_delta_c[DML2_MAX_PLANES];
unsigned int max_prefetch_in_lines[DML2_MAX_PLANES];
unsigned int pipe_plane[DML2_MAX_PLANES];
unsigned int num_active_pipes;
bool NoTimeToPrefetch[DML2_MAX_PLANES];
bool UrgVactiveBandwidthSupport;
bool PrefetchScheduleSupported;
bool UrgentBandwidthSupport;
bool PrefetchModeSupported;
bool ImmediateFlipSupported;
bool ImmediateFlipSupportedForPipe[DML2_MAX_PLANES];
bool dcfclk_support;
double Dcfclk;
double Dispclk;
double Dppclk[DML2_MAX_PLANES];
double GlobalDPPCLK;
double DSCCLK[DML2_MAX_PLANES];
double DCFCLKDeepSleep;
bool DCHUBBUB_ARB_CSTATE_MAX_CAP_MODE;
struct dml2_core_internal_watermarks Watermark;
unsigned int request_size_bytes_luma[DML2_MAX_PLANES];
unsigned int request_size_bytes_chroma[DML2_MAX_PLANES];
enum dml2_core_internal_request_type RequestLuma[DML2_MAX_PLANES];
enum dml2_core_internal_request_type RequestChroma[DML2_MAX_PLANES];
unsigned int DCCYMaxUncompressedBlock[DML2_MAX_PLANES];
unsigned int DCCYMaxCompressedBlock[DML2_MAX_PLANES];
unsigned int DCCYIndependentBlock[DML2_MAX_PLANES];
unsigned int DCCCMaxUncompressedBlock[DML2_MAX_PLANES];
unsigned int DCCCMaxCompressedBlock[DML2_MAX_PLANES];
unsigned int DCCCIndependentBlock[DML2_MAX_PLANES];
double StutterEfficiency;
double StutterEfficiencyNotIncludingVBlank;
unsigned int NumberOfStutterBurstsPerFrame;
double Z8StutterEfficiency;
unsigned int Z8NumberOfStutterBurstsPerFrame;
double Z8StutterEfficiencyNotIncludingVBlank;
double LowPowerStutterEfficiency;
double LowPowerStutterEfficiencyNotIncludingVBlank;
unsigned int LowPowerNumberOfStutterBurstsPerFrame;
double StutterPeriod;
double Z8StutterEfficiencyBestCase;
unsigned int Z8NumberOfStutterBurstsPerFrameBestCase;
double Z8StutterEfficiencyNotIncludingVBlankBestCase;
double StutterPeriodBestCase;
double MIN_DST_Y_NEXT_START[DML2_MAX_PLANES];
bool VREADY_AT_OR_AFTER_VSYNC[DML2_MAX_PLANES];
unsigned int DSTYAfterScaler[DML2_MAX_PLANES];
unsigned int DSTXAfterScaler[DML2_MAX_PLANES];
double dst_y_prefetch[DML2_MAX_PLANES];
double dst_y_per_vm_vblank[DML2_MAX_PLANES];
double dst_y_per_row_vblank[DML2_MAX_PLANES];
double dst_y_per_vm_flip[DML2_MAX_PLANES];
double dst_y_per_row_flip[DML2_MAX_PLANES];
double MinTTUVBlank[DML2_MAX_PLANES];
double DisplayPipeLineDeliveryTimeLuma[DML2_MAX_PLANES];
double DisplayPipeLineDeliveryTimeChroma[DML2_MAX_PLANES];
double DisplayPipeLineDeliveryTimeLumaPrefetch[DML2_MAX_PLANES];
double DisplayPipeLineDeliveryTimeChromaPrefetch[DML2_MAX_PLANES];
double DisplayPipeRequestDeliveryTimeLuma[DML2_MAX_PLANES];
double DisplayPipeRequestDeliveryTimeChroma[DML2_MAX_PLANES];
double DisplayPipeRequestDeliveryTimeLumaPrefetch[DML2_MAX_PLANES];
double DisplayPipeRequestDeliveryTimeChromaPrefetch[DML2_MAX_PLANES];
unsigned int CursorDstXOffset[DML2_MAX_PLANES];
unsigned int CursorDstYOffset[DML2_MAX_PLANES];
unsigned int CursorChunkHDLAdjust[DML2_MAX_PLANES];
double DST_Y_PER_PTE_ROW_NOM_L[DML2_MAX_PLANES];
double DST_Y_PER_PTE_ROW_NOM_C[DML2_MAX_PLANES];
double time_per_pte_group_nom_luma[DML2_MAX_PLANES];
double time_per_pte_group_nom_chroma[DML2_MAX_PLANES];
double time_per_pte_group_vblank_luma[DML2_MAX_PLANES];
double time_per_pte_group_vblank_chroma[DML2_MAX_PLANES];
double time_per_pte_group_flip_luma[DML2_MAX_PLANES];
double time_per_pte_group_flip_chroma[DML2_MAX_PLANES];
double TimePerVMGroupVBlank[DML2_MAX_PLANES];
double TimePerVMGroupFlip[DML2_MAX_PLANES];
double TimePerVMRequestVBlank[DML2_MAX_PLANES];
double TimePerVMRequestFlip[DML2_MAX_PLANES];
double DST_Y_PER_META_ROW_NOM_L[DML2_MAX_PLANES];
double DST_Y_PER_META_ROW_NOM_C[DML2_MAX_PLANES];
double TimePerMetaChunkNominal[DML2_MAX_PLANES];
double TimePerChromaMetaChunkNominal[DML2_MAX_PLANES];
double TimePerMetaChunkVBlank[DML2_MAX_PLANES];
double TimePerChromaMetaChunkVBlank[DML2_MAX_PLANES];
double TimePerMetaChunkFlip[DML2_MAX_PLANES];
double TimePerChromaMetaChunkFlip[DML2_MAX_PLANES];
double FractionOfUrgentBandwidth;
double FractionOfUrgentBandwidthImmediateFlip;
double FractionOfUrgentBandwidthMALL;
bool PTE_BUFFER_MODE[DML2_MAX_PLANES];
unsigned int BIGK_FRAGMENT_SIZE[DML2_MAX_PLANES];
double VActiveLatencyHidingUs[DML2_MAX_PLANES];
unsigned int SubViewportLinesNeededInMALL[DML2_MAX_PLANES];
bool is_using_mall_for_ss[DML2_MAX_PLANES];
unsigned int VStartupMin[DML2_MAX_PLANES];
unsigned int VStartup[DML2_MAX_PLANES];
unsigned int VUpdateOffsetPix[DML2_MAX_PLANES];
unsigned int VUpdateWidthPix[DML2_MAX_PLANES];
unsigned int VReadyOffsetPix[DML2_MAX_PLANES];
unsigned int pstate_keepout_dst_lines[DML2_MAX_PLANES];
double MaxActiveFCLKChangeLatencySupported;
bool USRRetrainingSupport;
bool g6_temp_read_support;
bool global_z8_stutter_supported;
enum dml2_pstate_change_support FCLKChangeSupport[DML2_MAX_PLANES];
enum dml2_pstate_change_support DRAMClockChangeSupport[DML2_MAX_PLANES];
enum dml2_pstate_change_support temp_read_or_ppt_support[DML2_MAX_PLANES];
bool global_dram_clock_change_supported;
bool global_fclk_change_supported;
bool global_temp_read_or_ppt_supported;
double MaxActiveDRAMClockChangeLatencySupported[DML2_MAX_PLANES];
double WritebackAllowFCLKChangeEndPosition[DML2_MAX_PLANES];
double WritebackAllowDRAMClockChangeEndPosition[DML2_MAX_PLANES];
unsigned int DETBufferSizeInKByte[DML2_MAX_PLANES];
unsigned int DETBufferSizeY[DML2_MAX_PLANES];
unsigned int DETBufferSizeC[DML2_MAX_PLANES];
unsigned int SwathHeightY[DML2_MAX_PLANES];
unsigned int SwathHeightC[DML2_MAX_PLANES];
double urg_vactive_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_required_qual[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_required_flip[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double non_urg_bandwidth_required[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double non_urg_bandwidth_required_flip[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double avg_bandwidth_available_min[dml2_core_internal_soc_state_max];
double avg_bandwidth_available[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_available_min[dml2_core_internal_soc_state_max];
double urg_bandwidth_available[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double urg_bandwidth_available_vm_only[dml2_core_internal_soc_state_max];
double urg_bandwidth_available_pixel_and_vm[dml2_core_internal_soc_state_max];
double non_urg_bandwidth_available[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double dcc_dram_bw_nom_overhead_factor_p0[DML2_MAX_PLANES];
double dcc_dram_bw_nom_overhead_factor_p1[DML2_MAX_PLANES];
double dcc_dram_bw_pref_overhead_factor_p0[DML2_MAX_PLANES];
double dcc_dram_bw_pref_overhead_factor_p1[DML2_MAX_PLANES];
double mall_prefetch_sdp_overhead_factor[DML2_MAX_PLANES];
double mall_prefetch_dram_overhead_factor[DML2_MAX_PLANES];
unsigned int num_mcaches_l[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_l[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_per_channel_l[DML2_MAX_PLANES];
unsigned int mcache_offsets_l[DML2_MAX_PLANES][DML2_MAX_MCACHES + 1];
unsigned int mcache_shift_granularity_l[DML2_MAX_PLANES];
unsigned int num_mcaches_c[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_c[DML2_MAX_PLANES];
unsigned int mcache_row_bytes_per_channel_c[DML2_MAX_PLANES];
unsigned int mcache_offsets_c[DML2_MAX_PLANES][DML2_MAX_MCACHES + 1];
unsigned int mcache_shift_granularity_c[DML2_MAX_PLANES];
bool mall_comb_mcache_l[DML2_MAX_PLANES];
bool mall_comb_mcache_c[DML2_MAX_PLANES];
bool lc_comb_mcache[DML2_MAX_PLANES];
double impacted_prefetch_margin_us[DML2_MAX_PLANES];
};
struct dml2_core_internal_SOCParametersList {
double UrgentLatency;
double ExtraLatency_sr;
double ExtraLatency;
double WritebackLatency;
double DRAMClockChangeLatency;
double FCLKChangeLatency;
double SRExitTime;
double SREnterPlusExitTime;
double SRExitTimeLowPower;
double SREnterPlusExitTimeLowPower;
double SRExitZ8Time;
double SREnterPlusExitZ8Time;
double USRRetrainingLatency;
double SMNLatency;
double g6_temp_read_blackout_us;
double temp_read_or_ppt_blackout_us;
double max_urgent_latency_us;
double df_response_time_us;
enum dml2_qos_param_type qos_type;
};
struct dml2_core_calcs_mode_support_locals {
double PixelClockBackEnd[DML2_MAX_PLANES];
double OutputBpp[DML2_MAX_PLANES];
unsigned int meta_row_height_luma[DML2_MAX_PLANES];
unsigned int meta_row_height_chroma[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_l[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_c[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_l[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_c[DML2_MAX_PLANES];
bool dummy_boolean[3];
unsigned int dummy_integer[3];
unsigned int dummy_integer_array[36][DML2_MAX_PLANES];
enum dml2_odm_mode dummy_odm_mode[DML2_MAX_PLANES];
bool dummy_boolean_array[2][DML2_MAX_PLANES];
double dummy_single[3];
double dummy_single_array[DML2_MAX_PLANES];
double dummy_double_array[3][DML2_MAX_PLANES];
enum dml2_pstate_method dummy_pstate_method_array[DML2_MAX_PLANES];
struct dml2_core_internal_watermarks dummy_watermark;
double dummy_bw[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double surface_dummy_bw[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max][DML2_MAX_PLANES];
unsigned int MaximumVStartup[DML2_MAX_PLANES];
unsigned int DSTYAfterScaler[DML2_MAX_PLANES];
unsigned int DSTXAfterScaler[DML2_MAX_PLANES];
struct dml2_core_internal_SOCParametersList mSOCParameters;
struct dml2_core_internal_DmlPipe myPipe;
struct dml2_core_internal_DmlPipe SurfParameters[DML2_MAX_PLANES];
unsigned int TotalNumberOfActiveWriteback;
unsigned int MaximumSwathWidthSupportLuma;
unsigned int MaximumSwathWidthSupportChroma;
bool MPCCombineMethodAsNeededForPStateChangeAndVoltage;
bool MPCCombineMethodAsPossible;
bool TotalAvailablePipesSupportNoDSC;
unsigned int NumberOfDPPNoDSC;
enum dml2_odm_mode ODMModeNoDSC;
double RequiredDISPCLKPerSurfaceNoDSC;
bool TotalAvailablePipesSupportDSC;
unsigned int NumberOfDPPDSC;
enum dml2_odm_mode ODMModeDSC;
double RequiredDISPCLKPerSurfaceDSC;
double BWOfNonCombinedSurfaceOfMaximumBandwidth;
unsigned int NumberOfNonCombinedSurfaceOfMaximumBandwidth;
unsigned int TotalNumberOfActiveOTG;
unsigned int TotalNumberOfActiveHDMIFRL;
unsigned int TotalNumberOfActiveDP2p0;
unsigned int TotalNumberOfActiveDP2p0Outputs;
unsigned int TotalSlots;
unsigned int DSCFormatFactor;
unsigned int TotalDSCUnitsRequired;
unsigned int ReorderingBytes;
bool ImmediateFlipRequired;
bool FullFrameMALLPStateMethod;
bool SubViewportMALLPStateMethod;
bool PhantomPipeMALLPStateMethod;
bool SubViewportMALLRefreshGreaterThan120Hz;
double HostVMInefficiencyFactor;
double HostVMInefficiencyFactorPrefetch;
unsigned int MaxVStartup;
double PixelClockBackEndFactor;
unsigned int NumDSCUnitRequired;
double Tvm_trips[DML2_MAX_PLANES];
double Tr0_trips[DML2_MAX_PLANES];
double Tvm_trips_flip[DML2_MAX_PLANES];
double Tr0_trips_flip[DML2_MAX_PLANES];
double Tvm_trips_flip_rounded[DML2_MAX_PLANES];
double Tr0_trips_flip_rounded[DML2_MAX_PLANES];
unsigned int per_pipe_flip_bytes[DML2_MAX_PLANES];
unsigned int vmpg_width_y[DML2_MAX_PLANES];
unsigned int vmpg_height_y[DML2_MAX_PLANES];
unsigned int vmpg_width_c[DML2_MAX_PLANES];
unsigned int vmpg_height_c[DML2_MAX_PLANES];
unsigned int full_swath_bytes_l[DML2_MAX_PLANES];
unsigned int full_swath_bytes_c[DML2_MAX_PLANES];
unsigned int tdlut_pte_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_row_bytes[DML2_MAX_PLANES];
unsigned int tdlut_groups_per_2row_ub[DML2_MAX_PLANES];
double tdlut_opt_time[DML2_MAX_PLANES];
double tdlut_drain_time[DML2_MAX_PLANES];
unsigned int tdlut_bytes_to_deliver[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_group[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_chunk[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_line[DML2_MAX_PLANES];
unsigned int cursor_lines_per_chunk[DML2_MAX_PLANES];
unsigned int cursor_bytes[DML2_MAX_PLANES];
bool stream_visited[DML2_MAX_PLANES];
unsigned int pstate_bytes_required_l[dml2_pstate_type_count][DML2_MAX_PLANES];
unsigned int pstate_bytes_required_c[dml2_pstate_type_count][DML2_MAX_PLANES];
double prefetch_sw_bytes[DML2_MAX_PLANES];
double Tpre_rounded[DML2_MAX_PLANES];
double Tpre_oto[DML2_MAX_PLANES];
bool recalc_prefetch_schedule;
bool recalc_prefetch_done;
double impacted_dst_y_pre[DML2_MAX_PLANES];
double line_times[DML2_MAX_PLANES];
enum dml2_source_format_class pixel_format[DML2_MAX_PLANES];
unsigned int lb_source_lines_l[DML2_MAX_PLANES];
unsigned int lb_source_lines_c[DML2_MAX_PLANES];
double prefetch_swath_time_us[DML2_MAX_PLANES];
};
struct dml2_core_calcs_mode_programming_locals {
double PixelClockBackEnd[DML2_MAX_PLANES];
double OutputBpp[DML2_MAX_PLANES];
unsigned int num_active_planes;
unsigned int MaxTotalDETInKByte;
unsigned int NomDETInKByte;
unsigned int MinCompressedBufferSizeInKByte;
double SOCCLK;
double dummy_bw[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max];
double surface_dummy_bw[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max][DML2_MAX_PLANES];
double surface_dummy_bw0[dml2_core_internal_soc_state_max][dml2_core_internal_bw_max][DML2_MAX_PLANES];
unsigned int dummy_integer_array[4][DML2_MAX_PLANES];
enum dml2_output_encoder_class dummy_output_encoder_array[DML2_MAX_PLANES];
double dummy_single_array[2][DML2_MAX_PLANES];
unsigned int dummy_long_array[8][DML2_MAX_PLANES];
bool dummy_boolean_array[2][DML2_MAX_PLANES];
bool dummy_boolean[2];
double dummy_single[2];
struct dml2_core_internal_watermarks dummy_watermark;
unsigned int DSCFormatFactor;
struct dml2_core_internal_DmlPipe SurfaceParameters[DML2_MAX_PLANES];
unsigned int ReorderingBytes;
double HostVMInefficiencyFactor;
double HostVMInefficiencyFactorPrefetch;
unsigned int TotalDCCActiveDPP;
unsigned int TotalActiveDPP;
unsigned int Total3dlutActive;
unsigned int MaxVStartupLines[DML2_MAX_PLANES];
bool immediate_flip_required;
bool DestinationLineTimesForPrefetchLessThan2;
bool VRatioPrefetchMoreThanMax;
double MaxTotalRDBandwidthNotIncludingMALLPrefetch;
struct dml2_core_internal_SOCParametersList mmSOCParameters;
double Tvstartup_margin;
double dlg_vblank_start;
double LSetup;
double blank_lines_remaining;
double WRBandwidth;
struct dml2_core_internal_DmlPipe myPipe;
double PixelClockBackEndFactor;
unsigned int vmpg_width_y[DML2_MAX_PLANES];
unsigned int vmpg_height_y[DML2_MAX_PLANES];
unsigned int vmpg_width_c[DML2_MAX_PLANES];
unsigned int vmpg_height_c[DML2_MAX_PLANES];
unsigned int full_swath_bytes_l[DML2_MAX_PLANES];
unsigned int full_swath_bytes_c[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_l[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_c[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_l[DML2_MAX_PLANES];
unsigned int dpte_row_bytes_per_row_c[DML2_MAX_PLANES];
unsigned int tdlut_pte_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_frame[DML2_MAX_PLANES];
unsigned int tdlut_row_bytes[DML2_MAX_PLANES];
unsigned int tdlut_groups_per_2row_ub[DML2_MAX_PLANES];
double tdlut_opt_time[DML2_MAX_PLANES];
double tdlut_drain_time[DML2_MAX_PLANES];
unsigned int tdlut_bytes_to_deliver[DML2_MAX_PLANES];
unsigned int tdlut_bytes_per_group[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_chunk[DML2_MAX_PLANES];
unsigned int cursor_bytes_per_line[DML2_MAX_PLANES];
unsigned int cursor_lines_per_chunk[DML2_MAX_PLANES];
unsigned int cursor_bytes[DML2_MAX_PLANES];
double Tvm_trips[DML2_MAX_PLANES];
double Tr0_trips[DML2_MAX_PLANES];
double Tvm_trips_flip[DML2_MAX_PLANES];
double Tr0_trips_flip[DML2_MAX_PLANES];
double Tvm_trips_flip_rounded[DML2_MAX_PLANES];
double Tr0_trips_flip_rounded[DML2_MAX_PLANES];
unsigned int per_pipe_flip_bytes[DML2_MAX_PLANES];
unsigned int pstate_bytes_required_l[dml2_pstate_type_count][DML2_MAX_PLANES];
unsigned int pstate_bytes_required_c[dml2_pstate_type_count][DML2_MAX_PLANES];
double prefetch_sw_bytes[DML2_MAX_PLANES];
double Tpre_rounded[DML2_MAX_PLANES];
double Tpre_oto[DML2_MAX_PLANES];
bool recalc_prefetch_schedule;
double impacted_dst_y_pre[DML2_MAX_PLANES];
double line_times[DML2_MAX_PLANES];
enum dml2_source_format_class pixel_format[DML2_MAX_PLANES];
unsigned int lb_source_lines_l[DML2_MAX_PLANES];
unsigned int lb_source_lines_c[DML2_MAX_PLANES];
unsigned int num_dsc_slices[DML2_MAX_PLANES];
bool dsc_enable[DML2_MAX_PLANES];
};
struct dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_locals {
double ActiveDRAMClockChangeLatencyMargin[DML2_MAX_PLANES];
double ActiveFCLKChangeLatencyMargin[DML2_MAX_PLANES];
double USRRetrainingLatencyMargin[DML2_MAX_PLANES];
double g6_temp_read_latency_margin[DML2_MAX_PLANES];
double temp_read_or_ppt_latency_margin[DML2_MAX_PLANES];
double EffectiveLBLatencyHidingY;
double EffectiveLBLatencyHidingC;
double LinesInDETY[DML2_MAX_PLANES];
double LinesInDETC[DML2_MAX_PLANES];
unsigned int LinesInDETYRoundedDownToSwath[DML2_MAX_PLANES];
unsigned int LinesInDETCRoundedDownToSwath[DML2_MAX_PLANES];
double FullDETBufferingTimeY;
double FullDETBufferingTimeC;
double WritebackDRAMClockChangeLatencyMargin;
double WritebackFCLKChangeLatencyMargin;
double WritebackTempReadOrPptLatencyMargin;
double WritebackLatencyHiding;
unsigned int TotalActiveWriteback;
unsigned int LBLatencyHidingSourceLinesY[DML2_MAX_PLANES];
unsigned int LBLatencyHidingSourceLinesC[DML2_MAX_PLANES];
double TotalPixelBW;
double EffectiveDETBufferSizeY;
double ActiveClockChangeLatencyHidingY;
double ActiveClockChangeLatencyHidingC;
double ActiveClockChangeLatencyHiding;
double peak_vactive_p_vblank_latency_hiding_us;
unsigned int dst_y_pstate;
unsigned int src_y_pstate_l;
unsigned int src_y_pstate_c;
unsigned int src_y_ahead_l;
unsigned int src_y_ahead_c;
unsigned int sub_vp_lines_l;
unsigned int sub_vp_lines_c;
};
struct dml2_core_calcs_CalculateVMRowAndSwath_locals {
unsigned int PTEBufferSizeInRequestsForLuma[DML2_MAX_PLANES];
unsigned int PTEBufferSizeInRequestsForChroma[DML2_MAX_PLANES];
unsigned int vm_bytes_l;
unsigned int vm_bytes_c;
unsigned int PixelPTEBytesPerRowY[DML2_MAX_PLANES];
unsigned int PixelPTEBytesPerRowC[DML2_MAX_PLANES];
unsigned int PixelPTEBytesPerRowStorageY[DML2_MAX_PLANES];
unsigned int PixelPTEBytesPerRowStorageC[DML2_MAX_PLANES];
unsigned int PixelPTEBytesPerRowY_one_row_per_frame[DML2_MAX_PLANES];
unsigned int PixelPTEBytesPerRowC_one_row_per_frame[DML2_MAX_PLANES];
unsigned int dpte_row_width_luma_ub_one_row_per_frame[DML2_MAX_PLANES];
unsigned int dpte_row_height_luma_one_row_per_frame[DML2_MAX_PLANES];
unsigned int dpte_row_width_chroma_ub_one_row_per_frame[DML2_MAX_PLANES];
unsigned int dpte_row_height_chroma_one_row_per_frame[DML2_MAX_PLANES];
bool one_row_per_frame_fits_in_buffer[DML2_MAX_PLANES];
unsigned int HostVMDynamicLevels;
unsigned int meta_row_bytes_per_row_ub_l[DML2_MAX_PLANES];
unsigned int meta_row_bytes_per_row_ub_c[DML2_MAX_PLANES];
};
struct dml2_core_calcs_CalculateVMRowAndSwath_params {
const struct dml2_display_cfg *display_cfg;
unsigned int NumberOfActiveSurfaces;
struct dml2_core_internal_DmlPipe *myPipe;
unsigned int *SurfaceSizeInMALL;
unsigned int PTEBufferSizeInRequestsLuma;
unsigned int PTEBufferSizeInRequestsChroma;
unsigned int MALLAllocatedForDCN;
unsigned int *SwathWidthY;
unsigned int *SwathWidthC;
unsigned int HostVMMinPageSize;
unsigned int DCCMetaBufferSizeBytes;
bool mrq_present;
enum dml2_pstate_method *uclk_pstate_switch_modes;
bool *PTEBufferSizeNotExceeded;
bool *DCCMetaBufferSizeNotExceeded;
unsigned int *dpte_row_width_luma_ub;
unsigned int *dpte_row_width_chroma_ub;
unsigned int *dpte_row_height_luma;
unsigned int *dpte_row_height_chroma;
unsigned int *dpte_row_height_linear_luma;
unsigned int *dpte_row_height_linear_chroma;
unsigned int *vm_group_bytes;
unsigned int *dpte_group_bytes;
unsigned int *PixelPTEReqWidthY;
unsigned int *PixelPTEReqHeightY;
unsigned int *PTERequestSizeY;
unsigned int *vmpg_width_y;
unsigned int *vmpg_height_y;
unsigned int *PixelPTEReqWidthC;
unsigned int *PixelPTEReqHeightC;
unsigned int *PTERequestSizeC;
unsigned int *vmpg_width_c;
unsigned int *vmpg_height_c;
unsigned int *dpde0_bytes_per_frame_ub_l;
unsigned int *dpde0_bytes_per_frame_ub_c;
unsigned int *PrefetchSourceLinesY;
unsigned int *PrefetchSourceLinesC;
unsigned int *VInitPreFillY;
unsigned int *VInitPreFillC;
unsigned int *MaxNumSwathY;
unsigned int *MaxNumSwathC;
double *dpte_row_bw;
unsigned int *PixelPTEBytesPerRow;
unsigned int *dpte_row_bytes_per_row_l;
unsigned int *dpte_row_bytes_per_row_c;
unsigned int *vm_bytes;
bool *use_one_row_for_frame;
bool *use_one_row_for_frame_flip;
bool *is_using_mall_for_ss;
bool *PTE_BUFFER_MODE;
unsigned int *BIGK_FRAGMENT_SIZE;
unsigned int *meta_req_width_luma;
unsigned int *meta_req_height_luma;
unsigned int *meta_row_width_luma;
unsigned int *meta_row_height_luma;
unsigned int *meta_pte_bytes_per_frame_ub_l;
unsigned int *meta_req_width_chroma;
unsigned int *meta_req_height_chroma;
unsigned int *meta_row_width_chroma;
unsigned int *meta_row_height_chroma;
unsigned int *meta_pte_bytes_per_frame_ub_c;
double *meta_row_bw;
unsigned int *meta_row_bytes;
unsigned int *meta_row_bytes_per_row_ub_l;
unsigned int *meta_row_bytes_per_row_ub_c;
};
struct dml2_core_calcs_CalculatePrefetchSchedule_locals {
bool NoTimeToPrefetch;
unsigned int DPPCycles;
unsigned int DISPCLKCycles;
double DSTTotalPixelsAfterScaler;
double LineTime;
double dst_y_prefetch_equ;
double prefetch_bw_oto;
double per_pipe_vactive_sw_bw;
double Tvm_oto;
double Tr0_oto;
double Tvm_oto_lines;
double Tr0_oto_lines;
double dst_y_prefetch_oto;
double TimeForFetchingVM;
double TimeForFetchingRowInVBlank;
double LinesToRequestPrefetchPixelData;
unsigned int HostVMDynamicLevelsTrips;
double trip_to_mem;
double Tvm_trips_rounded;
double Tr0_trips_rounded;
double max_Tsw;
double Lsw_oto;
double prefetch_bw_equ;
double Tvm_equ;
double Tr0_equ;
double Tdmbf;
double Tdmec;
double Tdmsks;
double total_row_bytes;
double prefetch_bw_pr;
double bytes_pp;
double dep_bytes;
double min_Lsw_oto;
double min_Lsw_equ;
double Tsw_est1;
double Tsw_est2;
double Tsw_est3;
double prefetch_bw1;
double prefetch_bw2;
double prefetch_bw3;
double prefetch_bw4;
double dst_y_prefetch_equ_impacted;
double TWait_p;
unsigned int cursor_prefetch_bytes;
};
struct dml2_core_shared_calculate_det_buffer_size_params {
const struct dml2_display_cfg *display_cfg;
bool ForceSingleDPP;
unsigned int NumberOfActiveSurfaces;
bool UnboundedRequestEnabled;
unsigned int nomDETInKByte;
unsigned int MaxTotalDETInKByte;
unsigned int ConfigReturnBufferSizeInKByte;
unsigned int MinCompressedBufferSizeInKByte;
unsigned int ConfigReturnBufferSegmentSizeInkByte;
unsigned int CompressedBufferSegmentSizeInkByte;
double *ReadBandwidthLuma;
double *ReadBandwidthChroma;
unsigned int *full_swath_bytes_l;
unsigned int *full_swath_bytes_c;
unsigned int *swath_time_value_us;
unsigned int *DPPPerSurface;
bool TryToAllocateForWriteLatency;
unsigned int bestEffortMinActiveLatencyHidingUs;
unsigned int *DETBufferSizeInKByte;
unsigned int *CompressedBufferSizeInkByte;
};
struct dml2_core_shared_calculate_vm_and_row_bytes_params {
bool ViewportStationary;
bool DCCEnable;
unsigned int NumberOfDPPs;
unsigned int BlockHeight256Bytes;
unsigned int BlockWidth256Bytes;
enum dml2_source_format_class SourcePixelFormat;
unsigned int SurfaceTiling;
unsigned int BytePerPixel;
enum dml2_rotation_angle RotationAngle;
unsigned int SwathWidth;
unsigned int ViewportHeight;
unsigned int ViewportXStart;
unsigned int ViewportYStart;
bool GPUVMEnable;
unsigned int GPUVMMaxPageTableLevels;
unsigned int GPUVMMinPageSizeKBytes;
unsigned int PTEBufferSizeInRequests;
unsigned int Pitch;
unsigned int MacroTileWidth;
unsigned int MacroTileHeight;
bool is_phantom;
unsigned int DCCMetaPitch;
bool mrq_present;
unsigned int *PixelPTEBytesPerRow;
unsigned int *PixelPTEBytesPerRowStorage;
unsigned int *dpte_row_width_ub;
unsigned int *dpte_row_height;
unsigned int *dpte_row_height_linear;
unsigned int *PixelPTEBytesPerRow_one_row_per_frame;
unsigned int *dpte_row_width_ub_one_row_per_frame;
unsigned int *dpte_row_height_one_row_per_frame;
unsigned int *vmpg_width;
unsigned int *vmpg_height;
unsigned int *PixelPTEReqWidth;
unsigned int *PixelPTEReqHeight;
unsigned int *PTERequestSize;
unsigned int *dpde0_bytes_per_frame_ub;
unsigned int *meta_row_bytes;
unsigned int *MetaRequestWidth;
unsigned int *MetaRequestHeight;
unsigned int *meta_row_width;
unsigned int *meta_row_height;
unsigned int *meta_pte_bytes_per_frame_ub;
};
struct dml2_core_shared_CalculateSwathAndDETConfiguration_locals {
unsigned int MaximumSwathHeightY[DML2_MAX_PLANES];
unsigned int MaximumSwathHeightC[DML2_MAX_PLANES];
unsigned int RoundedUpSwathSizeBytesY[DML2_MAX_PLANES];
unsigned int RoundedUpSwathSizeBytesC[DML2_MAX_PLANES];
unsigned int SwathWidthSingleDPP[DML2_MAX_PLANES];
unsigned int SwathWidthSingleDPPChroma[DML2_MAX_PLANES];
unsigned int SwathTimeValueUs[DML2_MAX_PLANES];
struct dml2_core_shared_calculate_det_buffer_size_params calculate_det_buffer_size_params;
};
struct dml2_core_shared_TruncToValidBPP_locals {
struct lib_frl_cap_check_params hdmifrlparams;
struct lib_frl_cap_check_intermediates hdmifrlinter;
};
struct dml2_core_shared_CalculateDETBufferSize_locals {
unsigned int DETBufferSizePoolInKByte;
unsigned int NextDETBufferPieceInKByte;
unsigned int NextSurfaceToAssignDETPiece;
double TotalBandwidth;
double BandwidthOfSurfacesNotAssignedDETPiece;
unsigned int max_minDET;
unsigned int minDET;
unsigned int minDET_pipe;
unsigned int TotalBandwidthPerStream[DML2_MAX_PLANES];
unsigned int TotalPixelRate;
unsigned int DETBudgetPerStream[DML2_MAX_PLANES];
unsigned int RemainingDETBudgetPerStream[DML2_MAX_PLANES];
unsigned int IdealDETBudget, DeltaDETBudget;
unsigned int ResidualDETAfterRounding;
};
struct dml2_core_shared_get_urgent_bandwidth_required_locals {
double required_bandwidth_mbps;
double required_bandwidth_mbps_this_surface;
double adj_factor_p0;
double adj_factor_p1;
double adj_factor_cur;
double adj_factor_p0_pre;
double adj_factor_p1_pre;
double adj_factor_cur_pre;
double per_plane_flip_bw[DML2_MAX_PLANES];
double mall_svp_prefetch_factor;
double tmp_nom_adj_factor_p0;
double tmp_nom_adj_factor_p1;
double tmp_pref_adj_factor_p0;
double tmp_pref_adj_factor_p1;
double vm_row_bw;
double flip_and_active_bw;
double flip_and_prefetch_bw;
double flip_and_prefetch_bw_max;
double active_and_excess_bw;
};
struct dml2_core_shared_calculate_peak_bandwidth_required_locals {
double unity_array[DML2_MAX_PLANES];
double zero_array[DML2_MAX_PLANES];
double surface_dummy_bw[DML2_MAX_PLANES];
};
struct dml2_core_shared_CalculateFlipSchedule_locals {
double min_row_time;
double Tvm_flip;
double Tr0_flip;
double ImmediateFlipBW;
double dpte_row_bytes;
double min_row_height;
double min_row_height_chroma;
double max_flip_time;
double lb_flip_bw;
double hvm_scaled_vm_bytes;
double num_rows;
double hvm_scaled_row_bytes;
double hvm_scaled_vm_row_bytes;
double vm_time_budget;
double row_time_budget;
double vm_and_row_time_budget;
bool dual_plane;
};
struct dml2_core_shared_rq_dlg_get_dlg_reg_locals {
unsigned int plane_idx;
unsigned int stream_idx;
enum dml2_source_format_class source_format;
const struct dml2_timing_cfg *timing;
bool dual_plane;
enum dml2_odm_mode odm_mode;
unsigned int htotal;
unsigned int hactive;
unsigned int hblank_end;
unsigned int vblank_end;
bool interlaced;
double pclk_freq_in_mhz;
double refclk_freq_in_mhz;
double ref_freq_to_pix_freq;
unsigned int num_active_pipes;
unsigned int first_pipe_idx_in_plane;
unsigned int pipe_idx_in_combine;
unsigned int odm_combine_factor;
double min_ttu_vblank;
unsigned int min_dst_y_next_start;
unsigned int vready_after_vcount0;
unsigned int dst_x_after_scaler;
unsigned int dst_y_after_scaler;
double dst_y_prefetch;
double dst_y_per_vm_vblank;
double dst_y_per_row_vblank;
double dst_y_per_vm_flip;
double dst_y_per_row_flip;
double max_dst_y_per_vm_vblank;
double max_dst_y_per_row_vblank;
double vratio_pre_l;
double vratio_pre_c;
double refcyc_per_line_delivery_pre_l;
double refcyc_per_line_delivery_l;
double refcyc_per_line_delivery_pre_c;
double refcyc_per_line_delivery_c;
double refcyc_per_req_delivery_pre_l;
double refcyc_per_req_delivery_l;
double refcyc_per_req_delivery_pre_c;
double refcyc_per_req_delivery_c;
double dst_y_per_pte_row_nom_l;
double dst_y_per_pte_row_nom_c;
double refcyc_per_pte_group_nom_l;
double refcyc_per_pte_group_nom_c;
double refcyc_per_pte_group_vblank_l;
double refcyc_per_pte_group_vblank_c;
double refcyc_per_pte_group_flip_l;
double refcyc_per_pte_group_flip_c;
double refcyc_per_tdlut_group;
double dst_y_per_meta_row_nom_l;
double dst_y_per_meta_row_nom_c;
double refcyc_per_meta_chunk_nom_l;
double refcyc_per_meta_chunk_nom_c;
double refcyc_per_meta_chunk_vblank_l;
double refcyc_per_meta_chunk_vblank_c;
double refcyc_per_meta_chunk_flip_l;
double refcyc_per_meta_chunk_flip_c;
};
struct dml2_core_shared_CalculateMetaAndPTETimes_params {
struct dml2_core_internal_scratch *scratch;
const struct dml2_display_cfg *display_cfg;
unsigned int NumberOfActiveSurfaces;
bool *use_one_row_for_frame;
double *dst_y_per_row_vblank;
double *dst_y_per_row_flip;
unsigned int *BytePerPixelY;
unsigned int *BytePerPixelC;
unsigned int *dpte_row_height;
unsigned int *dpte_row_height_chroma;
unsigned int *dpte_group_bytes;
unsigned int *PTERequestSizeY;
unsigned int *PTERequestSizeC;
unsigned int *PixelPTEReqWidthY;
unsigned int *PixelPTEReqHeightY;
unsigned int *PixelPTEReqWidthC;
unsigned int *PixelPTEReqHeightC;
unsigned int *dpte_row_width_luma_ub;
unsigned int *dpte_row_width_chroma_ub;
unsigned int *tdlut_groups_per_2row_ub;
bool mrq_present;
unsigned int MetaChunkSize;
unsigned int MinMetaChunkSizeBytes;
unsigned int *meta_row_width;
unsigned int *meta_row_width_chroma;
unsigned int *meta_row_height;
unsigned int *meta_row_height_chroma;
unsigned int *meta_req_width;
unsigned int *meta_req_width_chroma;
unsigned int *meta_req_height;
unsigned int *meta_req_height_chroma;
double *time_per_tdlut_group;
double *DST_Y_PER_PTE_ROW_NOM_L;
double *DST_Y_PER_PTE_ROW_NOM_C;
double *time_per_pte_group_nom_luma;
double *time_per_pte_group_vblank_luma;
double *time_per_pte_group_flip_luma;
double *time_per_pte_group_nom_chroma;
double *time_per_pte_group_vblank_chroma;
double *time_per_pte_group_flip_chroma;
double *DST_Y_PER_META_ROW_NOM_L;
double *DST_Y_PER_META_ROW_NOM_C;
double *TimePerMetaChunkNominal;
double *TimePerChromaMetaChunkNominal;
double *TimePerMetaChunkVBlank;
double *TimePerChromaMetaChunkVBlank;
double *TimePerMetaChunkFlip;
double *TimePerChromaMetaChunkFlip;
};
struct dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_params {
const struct dml2_display_cfg *display_cfg;
bool USRRetrainingRequired;
unsigned int NumberOfActiveSurfaces;
unsigned int MaxLineBufferLines;
unsigned int LineBufferSize;
unsigned int WritebackInterfaceBufferSize;
double DCFCLK;
double ReturnBW;
bool SynchronizeTimings;
bool SynchronizeDRRDisplaysForUCLKPStateChange;
const unsigned int *dpte_group_bytes;
struct dml2_core_internal_SOCParametersList mmSOCParameters;
unsigned int WritebackChunkSize;
double SOCCLK;
double DCFClkDeepSleep;
const unsigned int *DETBufferSizeY;
const unsigned int *DETBufferSizeC;
const unsigned int *SwathHeightY;
const unsigned int *SwathHeightC;
const unsigned int *SwathWidthY;
const unsigned int *SwathWidthC;
const unsigned int *DPPPerSurface;
const double *BytePerPixelDETY;
const double *BytePerPixelDETC;
const unsigned int *DSTXAfterScaler;
const unsigned int *DSTYAfterScaler;
bool UnboundedRequestEnabled;
unsigned int CompressedBufferSizeInkByte;
bool max_outstanding_when_urgent_expected;
unsigned int max_outstanding_requests;
unsigned int max_request_size_bytes;
const unsigned int *meta_row_height_l;
const unsigned int *meta_row_height_c;
const enum dml2_pstate_method *uclk_pstate_switch_modes;
struct dml2_core_internal_watermarks *Watermark;
enum dml2_pstate_change_support *DRAMClockChangeSupport;
bool *global_dram_clock_change_support_required;
bool *global_dram_clock_change_supported;
double *MaxActiveDRAMClockChangeLatencySupported;
unsigned int *SubViewportLinesNeededInMALL;
enum dml2_pstate_change_support *FCLKChangeSupport;
bool *global_fclk_change_supported;
double *MaxActiveFCLKChangeLatencySupported;
bool *USRRetrainingSupport;
double *VActiveLatencyHidingMargin;
double *VActiveLatencyHidingUs;
bool *g6_temp_read_support;
enum dml2_pstate_change_support *temp_read_or_ppt_support;
bool *global_temp_read_or_ppt_supported;
bool *global_z8_stutter_supported;
};
struct dml2_core_calcs_CalculateSwathAndDETConfiguration_params {
const struct dml2_display_cfg *display_cfg;
unsigned int ConfigReturnBufferSizeInKByte;
unsigned int MaxTotalDETInKByte;
unsigned int MinCompressedBufferSizeInKByte;
unsigned int rob_buffer_size_kbytes;
unsigned int pixel_chunk_size_kbytes;
bool ForceSingleDPP;
unsigned int NumberOfActiveSurfaces;
unsigned int nomDETInKByte;
unsigned int ConfigReturnBufferSegmentSizeInkByte;
unsigned int CompressedBufferSegmentSizeInkByte;
double *ReadBandwidthLuma;
double *ReadBandwidthChroma;
double *MaximumSwathWidthLuma;
double *MaximumSwathWidthChroma;
unsigned int *Read256BytesBlockHeightY;
unsigned int *Read256BytesBlockHeightC;
unsigned int *Read256BytesBlockWidthY;
unsigned int *Read256BytesBlockWidthC;
bool *surf_linear128_l;
bool *surf_linear128_c;
enum dml2_odm_mode *ODMMode;
unsigned int *BytePerPixY;
unsigned int *BytePerPixC;
double *BytePerPixDETY;
double *BytePerPixDETC;
unsigned int *DPPPerSurface;
bool mrq_present;
unsigned int dummy[2][DML2_MAX_PLANES];
unsigned int swath_width_luma_ub_single_dpp[DML2_MAX_PLANES];
unsigned int swath_width_chroma_ub_single_dpp[DML2_MAX_PLANES];
unsigned int *req_per_swath_ub_l;
unsigned int *req_per_swath_ub_c;
unsigned int *swath_width_luma_ub;
unsigned int *swath_width_chroma_ub;
unsigned int *SwathWidth;
unsigned int *SwathWidthChroma;
unsigned int *SwathHeightY;
unsigned int *SwathHeightC;
unsigned int *request_size_bytes_luma;
unsigned int *request_size_bytes_chroma;
unsigned int *DETBufferSizeInKByte;
unsigned int *DETBufferSizeY;
unsigned int *DETBufferSizeC;
unsigned int *full_swath_bytes_l;
unsigned int *full_swath_bytes_c;
unsigned int *full_swath_bytes_single_dpp_l;
unsigned int *full_swath_bytes_single_dpp_c;
bool *UnboundedRequestEnabled;
unsigned int *compbuf_reserved_space_64b;
unsigned int *CompressedBufferSizeInkByte;
bool *ViewportSizeSupportPerSurface;
bool *ViewportSizeSupport;
bool *hw_debug5;
struct dml2_core_shared_calculation_funcs *funcs;
};
struct dml2_core_calcs_CalculateStutterEfficiency_locals {
double DETBufferingTimeY;
double SwathWidthYCriticalSurface;
double SwathHeightYCriticalSurface;
double VActiveTimeCriticalSurface;
double FrameTimeCriticalSurface;
unsigned int BytePerPixelYCriticalSurface;
unsigned int DETBufferSizeYCriticalSurface;
double MinTTUVBlankCriticalSurface;
unsigned int BlockWidth256BytesYCriticalSurface;
bool SinglePlaneCriticalSurface;
bool SinglePipeCriticalSurface;
double TotalCompressedReadBandwidth;
double TotalRowReadBandwidth;
double AverageDCCCompressionRate;
double EffectiveCompressedBufferSize;
double PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer;
double StutterBurstTime;
unsigned int TotalActiveWriteback;
double LinesInDETY;
double LinesInDETYRoundedDownToSwath;
double MaximumEffectiveCompressionLuma;
double MaximumEffectiveCompressionChroma;
double TotalZeroSizeRequestReadBandwidth;
double TotalZeroSizeCompressedReadBandwidth;
double AverageDCCZeroSizeFraction;
double AverageZeroSizeCompressionRate;
bool stream_visited[DML2_MAX_PLANES];
};
struct dml2_core_calcs_CalculateStutterEfficiency_params {
const struct dml2_display_cfg *display_cfg;
unsigned int CompressedBufferSizeInkByte;
bool UnboundedRequestEnabled;
unsigned int MetaFIFOSizeInKEntries;
unsigned int ZeroSizeBufferEntries;
unsigned int PixelChunkSizeInKByte;
unsigned int NumberOfActiveSurfaces;
unsigned int ROBBufferSizeInKByte;
double TotalDataReadBandwidth;
double DCFCLK;
double ReturnBW;
unsigned int CompbufReservedSpace64B;
unsigned int CompbufReservedSpaceZs;
bool hw_debug5;
double SRExitTime;
double SRExitTimeLowPower;
double SRExitZ8Time;
bool SynchronizeTimings;
double StutterEnterPlusExitWatermark;
double LowPowerStutterEnterPlusExitWatermark;
double Z8StutterEnterPlusExitWatermark;
bool ProgressiveToInterlaceUnitInOPP;
double *MinTTUVBlank;
unsigned int *DPPPerSurface;
unsigned int *DETBufferSizeY;
unsigned int *BytePerPixelY;
double *BytePerPixelDETY;
unsigned int *SwathWidthY;
unsigned int *SwathHeightY;
unsigned int *SwathHeightC;
unsigned int *BlockHeight256BytesY;
unsigned int *BlockWidth256BytesY;
unsigned int *BlockHeight256BytesC;
unsigned int *BlockWidth256BytesC;
unsigned int *DCCYMaxUncompressedBlock;
unsigned int *DCCCMaxUncompressedBlock;
double *ReadBandwidthSurfaceLuma;
double *ReadBandwidthSurfaceChroma;
double *meta_row_bw;
double *dpte_row_bw;
bool rob_alloc_compressed;
double *StutterEfficiencyNotIncludingVBlank;
double *StutterEfficiency;
double *LowPowerStutterEfficiencyNotIncludingVBlank;
double *LowPowerStutterEfficiency;
unsigned int *NumberOfStutterBurstsPerFrame;
unsigned int *LowPowerNumberOfStutterBurstsPerFrame;
double *Z8StutterEfficiencyNotIncludingVBlank;
double *Z8StutterEfficiency;
unsigned int *Z8NumberOfStutterBurstsPerFrame;
double *StutterPeriod;
bool *DCHUBBUB_ARB_CSTATE_MAX_CAP_MODE;
};
struct dml2_core_calcs_CalculatePrefetchSchedule_params {
const struct dml2_display_cfg *display_cfg;
double HostVMInefficiencyFactor;
struct dml2_core_internal_DmlPipe *myPipe;
unsigned int DSCDelay;
double DPPCLKDelaySubtotalPlusCNVCFormater;
double DPPCLKDelaySCL;
double DPPCLKDelaySCLLBOnly;
double DPPCLKDelayCNVCCursor;
double DISPCLKDelaySubtotal;
unsigned int DPP_RECOUT_WIDTH;
enum dml2_output_format_class OutputFormat;
unsigned int MaxInterDCNTileRepeaters;
unsigned int VStartup;
unsigned int HostVMMinPageSize;
bool DynamicMetadataEnable;
bool DynamicMetadataVMEnabled;
unsigned int DynamicMetadataLinesBeforeActiveRequired;
unsigned int DynamicMetadataTransmittedBytes;
double ExtraLatencyPrefetch;
double TCalc;
unsigned int vm_bytes;
unsigned int PixelPTEBytesPerRow;
double PrefetchSourceLinesY;
unsigned int VInitPreFillY;
unsigned int MaxNumSwathY;
double PrefetchSourceLinesC;
unsigned int VInitPreFillC;
unsigned int MaxNumSwathC;
unsigned int swath_width_luma_ub;
unsigned int swath_width_chroma_ub;
unsigned int SwathHeightY;
unsigned int SwathHeightC;
double TWait;
double Ttrip;
double Turg;
bool setup_for_tdlut;
bool use_max_lsw;
unsigned int tdlut_pte_bytes_per_frame;
unsigned int tdlut_bytes_per_frame;
double tdlut_opt_time;
double tdlut_drain_time;
unsigned int num_cursors;
unsigned int cursor_bytes_per_chunk;
unsigned int cursor_bytes_per_line;
bool dcc_enable;
bool mrq_present;
unsigned int meta_row_bytes;
double mall_prefetch_sdp_overhead_factor;
double impacted_dst_y_pre;
double vactive_sw_bw_l;
double vactive_sw_bw_c;
unsigned int *DSTXAfterScaler;
unsigned int *DSTYAfterScaler;
double *dst_y_prefetch;
double *dst_y_per_vm_vblank;
double *dst_y_per_row_vblank;
double *VRatioPrefetchY;
double *VRatioPrefetchC;
double *RequiredPrefetchPixelDataBWLuma;
double *RequiredPrefetchPixelDataBWChroma;
double *RequiredPrefetchBWMax;
bool *NotEnoughTimeForDynamicMetadata;
double *Tno_bw;
double *Tno_bw_flip;
double *prefetch_vmrow_bw;
double *Tdmdl_vm;
double *Tdmdl;
double *TSetup;
double *Tpre_rounded;
double *Tpre_oto;
double *Tvm_trips;
double *Tr0_trips;
double *Tvm_trips_flip;
double *Tr0_trips_flip;
double *Tvm_trips_flip_rounded;
double *Tr0_trips_flip_rounded;
unsigned int *VUpdateOffsetPix;
unsigned int *VUpdateWidthPix;
unsigned int *VReadyOffsetPix;
double *prefetch_cursor_bw;
double *prefetch_sw_bytes;
double *prefetch_swath_time_us;
};
struct dml2_core_calcs_CheckGlobalPrefetchAdmissibility_params {
unsigned int num_active_planes;
enum dml2_source_format_class *pixel_format;
unsigned int rob_buffer_size_kbytes;
unsigned int compressed_buffer_size_kbytes;
unsigned int chunk_bytes_l;
unsigned int chunk_bytes_c;
unsigned int *detile_buffer_size_bytes_l;
unsigned int *detile_buffer_size_bytes_c;
unsigned int *full_swath_bytes_l;
unsigned int *full_swath_bytes_c;
unsigned int *lb_source_lines_l;
unsigned int *lb_source_lines_c;
unsigned int *swath_height_l;
unsigned int *swath_height_c;
double *prefetch_sw_bytes;
double *Tpre_rounded;
double *Tpre_oto;
double estimated_dcfclk_mhz;
double estimated_urg_bandwidth_required_mbps;
double *line_time;
double *dst_y_prefetch;
bool *recalc_prefetch_schedule;
double *impacted_dst_y_pre;
};
struct dml2_core_calcs_CheckGlobalPrefetchAdmissibility_locals {
unsigned int max_Trpd_dcfclk_cycles;
unsigned int burst_bytes_to_fill_det;
double time_to_fill_det_us;
unsigned int accumulated_return_path_dcfclk_cycles[DML2_MAX_PLANES];
bool prefetch_global_check_passed;
unsigned int src_swath_bytes_l[DML2_MAX_PLANES];
unsigned int src_swath_bytes_c[DML2_MAX_PLANES];
unsigned int src_detile_buf_size_bytes_l[DML2_MAX_PLANES];
unsigned int src_detile_buf_size_bytes_c[DML2_MAX_PLANES];
};
struct dml2_core_calcs_calculate_mcache_row_bytes_params {
unsigned int num_chans;
unsigned int mem_word_bytes;
unsigned int mcache_size_bytes;
unsigned int mcache_line_size_bytes;
unsigned int gpuvm_enable;
unsigned int gpuvm_page_size_kbytes;
bool surf_vert;
unsigned int vp_stationary;
unsigned int tiling_mode;
bool imall_enable;
unsigned int vp_start_x;
unsigned int vp_start_y;
unsigned int full_vp_width;
unsigned int full_vp_height;
unsigned int blk_width;
unsigned int blk_height;
unsigned int vmpg_width;
unsigned int vmpg_height;
unsigned int full_swath_bytes;
unsigned int bytes_per_pixel;
unsigned int *num_mcaches;
unsigned int *mcache_row_bytes;
unsigned int *mcache_row_bytes_per_channel;
unsigned int *meta_row_width_ub;
double *dcc_dram_bw_nom_overhead_factor;
double *dcc_dram_bw_pref_overhead_factor;
unsigned int *mvmpg_width;
unsigned int *mvmpg_height;
unsigned int *full_vp_access_width_mvmpg_aligned;
unsigned int *mvmpg_per_mcache_lb;
};
struct dml2_core_shared_calculate_mcache_setting_locals {
struct dml2_core_calcs_calculate_mcache_row_bytes_params l_p;
struct dml2_core_calcs_calculate_mcache_row_bytes_params c_p;
bool is_dual_plane;
unsigned int mvmpg_width_l;
unsigned int mvmpg_height_l;
unsigned int full_vp_access_width_mvmpg_aligned_l;
unsigned int mvmpg_per_mcache_lb_l;
unsigned int meta_row_width_l;
unsigned int mvmpg_width_c;
unsigned int mvmpg_height_c;
unsigned int full_vp_access_width_mvmpg_aligned_c;
unsigned int mvmpg_per_mcache_lb_c;
unsigned int meta_row_width_c;
unsigned int lc_comb_last_mcache_size;
double luma_time_factor;
double mcache_remainder_l;
double mcache_remainder_c;
unsigned int mvmpg_access_width_l;
unsigned int mvmpg_access_width_c;
unsigned int avg_mcache_element_size_l;
unsigned int avg_mcache_element_size_c;
unsigned int full_vp_access_width_l;
unsigned int full_vp_access_width_c;
};
struct dml2_core_calcs_calculate_mcache_setting_params {
bool dcc_enable;
unsigned int num_chans;
unsigned int mem_word_bytes;
unsigned int mcache_size_bytes;
unsigned int mcache_line_size_bytes;
unsigned int gpuvm_enable;
unsigned int gpuvm_page_size_kbytes;
enum dml2_source_format_class source_format;
bool surf_vert;
unsigned int vp_stationary;
unsigned int tiling_mode;
bool imall_enable;
unsigned int vp_start_x_l;
unsigned int vp_start_y_l;
unsigned int full_vp_width_l;
unsigned int full_vp_height_l;
unsigned int blk_width_l;
unsigned int blk_height_l;
unsigned int vmpg_width_l;
unsigned int vmpg_height_l;
unsigned int full_swath_bytes_l;
unsigned int bytes_per_pixel_l;
unsigned int vp_start_x_c;
unsigned int vp_start_y_c;
unsigned int full_vp_width_c;
unsigned int full_vp_height_c;
unsigned int blk_width_c;
unsigned int blk_height_c;
unsigned int vmpg_width_c;
unsigned int vmpg_height_c;
unsigned int full_swath_bytes_c;
unsigned int bytes_per_pixel_c;
unsigned int *num_mcaches_l;
unsigned int *mcache_row_bytes_l;
unsigned int *mcache_row_bytes_per_channel_l;
unsigned int *mcache_offsets_l;
unsigned int *mcache_shift_granularity_l;
double *dcc_dram_bw_nom_overhead_factor_l;
double *dcc_dram_bw_pref_overhead_factor_l;
unsigned int *num_mcaches_c;
unsigned int *mcache_row_bytes_c;
unsigned int *mcache_row_bytes_per_channel_c;
unsigned int *mcache_offsets_c;
unsigned int *mcache_shift_granularity_c;
double *dcc_dram_bw_nom_overhead_factor_c;
double *dcc_dram_bw_pref_overhead_factor_c;
bool *mall_comb_mcache_l;
bool *mall_comb_mcache_c;
bool *lc_comb_mcache;
};
struct dml2_core_calcs_calculate_alternate_lead_lines {
const struct dml2_display_cfg *display_cfg;
unsigned int *VStartup;
double *VActiveLatencyHidingUs;
unsigned int *min_lead_dst_lines;
};
struct dml2_core_calcs_calculate_alternate_svp_lines {
const struct dml2_display_cfg *display_cfg;
unsigned int *SwathHeightY;
unsigned int *SwathHeightC;
unsigned int *DETBufferSizeY;
double *BytePerPixelInDETC;
double dram_blackout_us;
unsigned int *svp0_dst_lines;
unsigned int *svp1_dst_lines;
unsigned int *svp_req_limit;
};
struct dml2_core_calcs_calculate_alternate_params {
const struct dml2_display_cfg *display_cfg;
double *dst_y_prefetch;
unsigned int *SwathHeightY;
unsigned int *SwathHeightC;
unsigned int *SwathWidthY;
unsigned int *SwathWidthC;
unsigned int *DETBufferSizeY;
unsigned int *DETBufferSizeC;
unsigned int *BytePerPixelY;
unsigned int *BytePerPixelC;
double *BytePerPixelInDETY;
double *BytePerPixelInDETC;
unsigned int *Read256BlockWidthY;
unsigned int *Read256BlockHeightY;
unsigned int *Read256BlockWidthC;
unsigned int *Read256BlockHeightC;
unsigned int *MacroTileWidthY;
unsigned int *MacroTileWidthC;
unsigned int *MacroTileHeightY;
unsigned int *MacroTileHeightC;
unsigned int *VInitPrefillY;
unsigned int *VInitPrefillC;
double *VRatioPrefetchY;
double *VRatioPrefetchC;
unsigned int *NoOfDPP;
unsigned int max_num_dpp;
double dram_blackout_us;
unsigned int *svp0_dst_lines;
unsigned int *svp1_dst_lines;
unsigned int *svp_req_limit;
double dcn_non_urgent_bandwidth_kbps;
double max_lsdma_bandwidth_kbps;
unsigned int alt_chan_fw_delay_us;
double *dst_y_per_vm_vblank;
double *dst_y_per_row_vblank;
unsigned int *DSTYAfterScaler;
enum dml2_odm_mode *ODMMode;
bool alt_chan_in_use;
unsigned int *svp0_max_bytes;
unsigned int *svp1_max_bytes;
unsigned int *svp0_max_bytes_per_dpp;
unsigned int *svp0_max_bytes_per_dpp_c;
unsigned int *svp1_max_bytes_per_dpp;
unsigned int *svp1_max_bytes_per_dpp_c;
unsigned int *nom_req_limit_alt;
unsigned int *min_lead_dst_lines;
unsigned int *total_swaths;
unsigned int *total_swaths_c;
unsigned int *prefetch_swaths;
unsigned int *prefetch_swaths_c;
double *prefetch_hdl_delta;
double *recout_hdl_delta;
double *prefetch_hdl_delta_c;
double *recout_hdl_delta_c;
unsigned int *max_prefetch_in_lines;
double *lsdma_bw_req_for_alt_kbps;
};
struct dml2_core_calcs_calculate_tdlut_setting_params {
double dispclk_mhz;
bool setup_for_tdlut;
enum dml2_tdlut_width_mode tdlut_width_mode;
enum dml2_tdlut_addressing_mode tdlut_addressing_mode;
unsigned int cursor_buffer_size;
bool gpuvm_enable;
unsigned int gpuvm_page_size_kbytes;
bool is_gfx11;
bool tdlut_mpc_width_flag;
unsigned int *tdlut_pte_bytes_per_frame;
unsigned int *tdlut_bytes_per_frame;
unsigned int *tdlut_groups_per_2row_ub;
double *tdlut_opt_time;
double *tdlut_drain_time;
unsigned int *tdlut_bytes_to_deliver;
unsigned int *tdlut_bytes_per_group;
};
struct dml2_core_calcs_calculate_peak_bandwidth_required_params {
double (*urg_vactive_bandwidth_required)[dml2_core_internal_bw_max];
double (*urg_bandwidth_required)[dml2_core_internal_bw_max];
double (*urg_bandwidth_required_qual)[dml2_core_internal_bw_max];
double (*non_urg_bandwidth_required)[dml2_core_internal_bw_max];
double (*surface_avg_vactive_required_bw)[dml2_core_internal_bw_max][DML2_MAX_PLANES];
double (*surface_peak_required_bw)[dml2_core_internal_bw_max][DML2_MAX_PLANES];
const struct dml2_display_cfg *display_cfg;
bool inc_flip_bw;
unsigned int num_active_planes;
unsigned int *num_of_dpp;
double *dcc_dram_bw_nom_overhead_factor_p0;
double *dcc_dram_bw_nom_overhead_factor_p1;
double *dcc_dram_bw_pref_overhead_factor_p0;
double *dcc_dram_bw_pref_overhead_factor_p1;
double *mall_prefetch_sdp_overhead_factor;
double *mall_prefetch_dram_overhead_factor;
double *surface_read_bandwidth_l;
double *surface_read_bandwidth_c;
double *prefetch_bandwidth_l;
double *prefetch_bandwidth_c;
double *prefetch_bandwidth_max;
double *excess_vactive_fill_bw_l;
double *excess_vactive_fill_bw_c;
double *cursor_bw;
double *dpte_row_bw;
double *meta_row_bw;
double *prefetch_cursor_bw;
double *prefetch_vmrow_bw;
double *flip_bw;
double *urgent_burst_factor_l;
double *urgent_burst_factor_c;
double *urgent_burst_factor_cursor;
double *urgent_burst_factor_prefetch_l;
double *urgent_burst_factor_prefetch_c;
double *urgent_burst_factor_prefetch_cursor;
};
struct dml2_core_calcs_calculate_bytes_to_fetch_required_to_hide_latency_params {
const struct dml2_display_cfg *display_cfg;
bool mrq_present;
unsigned int num_active_planes;
unsigned int *num_of_dpp;
unsigned int *meta_row_height_l;
unsigned int *meta_row_height_c;
unsigned int *meta_row_bytes_per_row_ub_l;
unsigned int *meta_row_bytes_per_row_ub_c;
unsigned int *dpte_row_height_l;
unsigned int *dpte_row_height_c;
unsigned int *dpte_bytes_per_row_l;
unsigned int *dpte_bytes_per_row_c;
unsigned int *byte_per_pix_l;
unsigned int *byte_per_pix_c;
unsigned int *swath_width_l;
unsigned int *swath_width_c;
unsigned int *swath_height_l;
unsigned int *swath_height_c;
double latency_to_hide_us[DML2_MAX_PLANES];
unsigned int *bytes_required_l;
unsigned int *bytes_required_c;
};
struct dml2_core_shared_calculation_funcs {
void (*calculate_det_buffer_size)(struct dml2_core_shared_calculate_det_buffer_size_params *p);
};
struct dml2_core_internal_scratch {
struct dml2_core_calcs_mode_support_locals dml_core_mode_support_locals;
struct dml2_core_calcs_mode_programming_locals dml_core_mode_programming_locals;
struct dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_locals CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_locals;
struct dml2_core_calcs_CalculateVMRowAndSwath_locals CalculateVMRowAndSwath_locals;
struct dml2_core_calcs_CalculatePrefetchSchedule_locals CalculatePrefetchSchedule_locals;
struct dml2_core_calcs_CheckGlobalPrefetchAdmissibility_locals CheckGlobalPrefetchAdmissibility_locals;
struct dml2_core_shared_CalculateSwathAndDETConfiguration_locals CalculateSwathAndDETConfiguration_locals;
struct dml2_core_shared_TruncToValidBPP_locals TruncToValidBPP_locals;
struct dml2_core_shared_CalculateDETBufferSize_locals CalculateDETBufferSize_locals;
struct dml2_core_shared_get_urgent_bandwidth_required_locals get_urgent_bandwidth_required_locals;
struct dml2_core_shared_calculate_peak_bandwidth_required_locals calculate_peak_bandwidth_required_locals;
struct dml2_core_shared_CalculateFlipSchedule_locals CalculateFlipSchedule_locals;
struct dml2_core_shared_rq_dlg_get_dlg_reg_locals rq_dlg_get_dlg_reg_locals;
struct dml2_core_calcs_CalculateStutterEfficiency_locals CalculateStutterEfficiency_locals;
struct dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_params CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_params;
struct dml2_core_calcs_CalculateVMRowAndSwath_params CalculateVMRowAndSwath_params;
struct dml2_core_calcs_CalculateSwathAndDETConfiguration_params CalculateSwathAndDETConfiguration_params;
struct dml2_core_calcs_CalculateStutterEfficiency_params CalculateStutterEfficiency_params;
struct dml2_core_calcs_CalculatePrefetchSchedule_params CalculatePrefetchSchedule_params;
struct dml2_core_calcs_CheckGlobalPrefetchAdmissibility_params CheckGlobalPrefetchAdmissibility_params;
struct dml2_core_calcs_calculate_mcache_setting_params calculate_mcache_setting_params;
struct dml2_core_calcs_calculate_tdlut_setting_params calculate_tdlut_setting_params;
struct dml2_core_shared_calculate_vm_and_row_bytes_params calculate_vm_and_row_bytes_params;
struct dml2_core_shared_calculate_mcache_setting_locals calculate_mcache_setting_locals;
struct dml2_core_shared_CalculateMetaAndPTETimes_params CalculateMetaAndPTETimes_params;
struct dml2_core_calcs_calculate_peak_bandwidth_required_params calculate_peak_bandwidth_params;
struct dml2_core_calcs_calculate_bytes_to_fetch_required_to_hide_latency_params calculate_bytes_to_fetch_required_to_hide_latency_params;
struct dml2_core_calcs_calculate_alternate_params calculate_alternate_params;
struct dml2_core_calcs_calculate_alternate_svp_lines calculate_alternate_svp_lines;
struct dml2_core_calcs_calculate_alternate_lead_lines calculate_alternate_lead_lines;
};
struct dml2_core_internal_display_mode_lib {
struct dml2_core_ip_params ip;
struct dml2_soc_bb soc;
struct dml2_ip_capabilities ip_caps;
struct dml2_core_internal_mode_support ms;
struct dml2_core_internal_mode_program mp;
struct dml2_core_shared_calculation_funcs funcs;
struct dml2_core_internal_scratch scratch;
};
struct dml2_core_calcs_mode_support_ex {
struct dml2_core_internal_display_mode_lib *mode_lib;
const struct dml2_display_cfg *in_display_cfg;
const struct dml2_mcg_min_clock_table *min_clk_table;
int min_clk_index;
const struct dml2_utm_soc_bb *utm_soc_bb;
struct dml2_core_internal_mode_support_info *out_evaluation_info;
const enum dml2_pstate_method *uclk_pstate_switch_modes;
};
struct core_display_cfg_support_info;
struct dml2_core_calcs_mode_programming_ex {
struct dml2_core_internal_display_mode_lib *mode_lib;
const struct dml2_display_cfg *in_display_cfg;
const struct dml2_mcg_min_clock_table *min_clk_table;
const struct core_display_cfg_support_info *cfg_support_info;
int min_clk_index;
const struct dml2_uclk_pstate_params *uclk_params;
const struct dml2_display_solution *solution;
const struct dml2_utm_soc_bb *utm_soc_bb;
struct dml2_display_cfg_programming *programming;
};
#endif