From: jsg Date: Fri, 26 Jul 2024 03:37:12 +0000 (+0000) Subject: drm/amd/display: Account for cursor prefetch BW in DML1 mode support X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=06680a8b73ef2b029bb7f43151031f1c8356d6a8;p=openbsd drm/amd/display: Account for cursor prefetch BW in DML1 mode support From Alvin Lee 6ecf239f71ef7f6e9f8ea46b9c7ef4df2afd96c9 in linux-6.6.y/6.6.42 074b3a886713f69d98d30bb348b1e4cb3ce52b22 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c b/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c index 6c84b0fa40f..0782a34689a 100644 --- a/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +++ b/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c @@ -3364,6 +3364,9 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l &mode_lib->vba.UrgentBurstFactorLumaPre[k], &mode_lib->vba.UrgentBurstFactorChromaPre[k], &mode_lib->vba.NotUrgentLatencyHidingPre[k]); + + v->cursor_bw_pre[k] = mode_lib->vba.NumberOfCursors[k] * mode_lib->vba.CursorWidth[k][0] * mode_lib->vba.CursorBPP[k][0] / + 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * v->VRatioPreY[i][j][k]; } {