diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-03-26 06:09:30 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-03-26 06:09:30 +0000 |
commit | 07b59a0d738bb1822d999512ba0d1a1f91aa0059 (patch) | |
tree | 100f8bc8c213a6c5045f85fd4342425e4b420ece /sys/dev/pci | |
parent | 969d330c9d290fb5844c9a4f83d295cd0b846653 (diff) |
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
Diffstat (limited to 'sys/dev/pci')
-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 */ |