From 07b59a0d738bb1822d999512ba0d1a1f91aa0059 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 26 Mar 2020 06:09:30 +0000 Subject: drm/amd/display: fix dcc swath size calculations on dcn1 From Josip Pavic 345acf45a0cef1effd58d42ed8e767a6219ae4b6 in linux 4.19.y/4.19.113 a0275dfc82c9034eefbeffd556cca6dd239d7925 in mainline linux --- sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hubbub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hubbub.c b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hubbub.c index 1ea91e153d3..c1adac888fd 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hubbub.c +++ b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hubbub.c @@ -684,8 +684,8 @@ static void hubbub1_det_request_size( hubbub1_get_blk256_size(&blk256_width, &blk256_height, bpe); - swath_bytes_horz_wc = height * blk256_height * bpe; - swath_bytes_vert_wc = width * blk256_width * bpe; + swath_bytes_horz_wc = width * blk256_height * bpe; + swath_bytes_vert_wc = height * blk256_width * bpe; *req128_horz_wc = (2 * swath_bytes_horz_wc <= detile_buf_size) ? false : /* full 256B request */ -- cgit v1.2.3