]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Limit NV12 chroma workaround
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 15 Nov 2019 19:58:53 +0000 (14:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 21:31:58 +0000 (16:31 -0500)
[Why]
It is causing green Line at the bottom of SDR 480p
MPO playback

[How]
Limit workaround to vertical > 512

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c

index 38661b9c61f80439e3e7036112f84a5102edd32f..332bf3d3a66450aac74daf4db721ce13ac773008 100644 (file)
@@ -200,7 +200,7 @@ void hubp21_set_viewport(
         *      Disable w/a when rotated 180 degrees, causes vertical chroma offset
         */
        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) {
                int pte_row_height = 0;
                int pte_rows = 0;