Commit ddba7627 authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher

drm/amd/display: Limit NV12 chroma workaround

[Why]
It is causing green Line at the bottom of SDR 480p
MPO playback

[How]
Limit workaround to vertical > 512
Signed-off-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 799a5f74
...@@ -200,7 +200,7 @@ void hubp21_set_viewport( ...@@ -200,7 +200,7 @@ void hubp21_set_viewport(
* Disable w/a when rotated 180 degrees, causes vertical chroma offset * Disable w/a when rotated 180 degrees, causes vertical chroma offset
*/ */
patched_viewport_height = viewport_c->height; patched_viewport_height = viewport_c->height;
if (viewport_c->height != 0 && debug->nv12_iflip_vm_wa && if (debug->nv12_iflip_vm_wa && viewport_c->height > 512 &&
rotation != ROTATION_ANGLE_180) { rotation != ROTATION_ANGLE_180) {
int pte_row_height = 0; int pte_row_height = 0;
int pte_rows = 0; int pte_rows = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment