aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Yang <[email protected]>2019-03-18 11:44:52 +0800
committerAlex Deucher <[email protected]>2019-06-22 09:34:08 -0500
commit0cd3262566797b3c2de5a180b32fa820808f7f1a (patch)
tree3ddb424d0cb4b77ba8ac42a6aac5d5254f9e9ca9
parent4e0cbbbfbc37fd5a8bdf653a1ebb7b271a506e2d (diff)
drm/amd/display: fixed DCC corruption
[Description] swath_bytes_horz_wc should be 256/64/64 for 2160p 32bpp surface Signed-off-by: Bob Yang <[email protected]> Reviewed-by: Charlene Liu <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c
index 09e8d10a7a01..b3a99b10cfbd 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c
@@ -194,8 +194,8 @@ static void hubbub2_det_request_size(
hubbub2_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 */