diff options
author | 2020-03-26 06:09:29 +0000 | |
---|---|---|
committer | 2020-03-26 06:09:29 +0000 | |
commit | 566e480263151f73b407c35845f51e98b6555e4d (patch) | |
tree | 3633443747102fe347caecb5628d12ef2461a27b | |
parent | drm/amd/display: Clear link settings on MST disable connector (diff) | |
download | wireguard-openbsd-566e480263151f73b407c35845f51e98b6555e4d.tar.xz wireguard-openbsd-566e480263151f73b407c35845f51e98b6555e4d.zip |
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
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hubbub.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |