drm/amd/display: Account for cursor prefetch BW in DML1 mode support
authorjsg <jsg@openbsd.org>
Fri, 26 Jul 2024 03:37:12 +0000 (03:37 +0000)
committerjsg <jsg@openbsd.org>
Fri, 26 Jul 2024 03:37:12 +0000 (03:37 +0000)
From Alvin Lee
6ecf239f71ef7f6e9f8ea46b9c7ef4df2afd96c9 in linux-6.6.y/6.6.42
074b3a886713f69d98d30bb348b1e4cb3ce52b22 in mainline linux

sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

index 6c84b0f..0782a34 100644 (file)
@@ -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];
                                }
 
                                {