From: jsg Date: Thu, 20 Jul 2023 08:37:42 +0000 (+0000) Subject: drm/amd/display: Fix a test CalculatePrefetchSchedule() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2108ca2f290f2a219fafb03790d05a56569ec70a;p=openbsd drm/amd/display: Fix a test CalculatePrefetchSchedule() From Christophe JAILLET 36786e2a733143426dd7628e939735465425fbb1 in linux-6.1.y/6.1.39 960e27a5741cd3001996ff6ddfb3eb0ed3a4909d in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c b/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c index b7c2844d0cb..f294f2f8c75 100644 --- a/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c +++ b/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c @@ -810,7 +810,7 @@ static bool CalculatePrefetchSchedule( *swath_width_chroma_ub = dml_ceil(SwathWidthY / 2 - 1, myPipe->BlockWidth256BytesC) + myPipe->BlockWidth256BytesC; } else { *swath_width_luma_ub = dml_ceil(SwathWidthY - 1, myPipe->BlockHeight256BytesY) + myPipe->BlockHeight256BytesY; - if (myPipe->BlockWidth256BytesC > 0) + if (myPipe->BlockHeight256BytesC > 0) *swath_width_chroma_ub = dml_ceil(SwathWidthY / 2 - 1, myPipe->BlockHeight256BytesC) + myPipe->BlockHeight256BytesC; }