]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: disable dynamic ODM when sharpness is enabled
authorSamson Tam <Samson.Tam@amd.com>
Fri, 4 Oct 2024 16:02:36 +0000 (12:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:24:20 +0000 (11:24 -0400)
[Why & How]
Disable dynamic ODM when sharpness is enabled

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c

index 7a01a956e4bbdbfa080394d67ba340d2e9d9d7cc..d901b9f7bc6ae5bd0bb05cba2948f985a5deb733 100644 (file)
@@ -514,6 +514,7 @@ static void populate_dml21_stream_overrides_from_stream_state(
                break;
        }
        if (!stream->ctx->dc->debug.enable_single_display_2to1_odm_policy ||
+                       ((stream->ctx->dc->debug.force_sharpness > 1) && stream->ctx->dc->config.use_spl) ||
                        stream->debug.force_odm_combine_segments > 0)
                stream_desc->overrides.disable_dynamic_odm = true;
        stream_desc->overrides.disable_subvp = stream->ctx->dc->debug.force_disable_subvp || stream->hw_cursor_req;