Commit 290c0462 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher

drm/amd/display: Fix incorrect DCN401 comparison

The comparisons intend to be DCN401 inclusive, and fix it by adding
equal signs.
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 872c0de3
...@@ -5104,7 +5104,7 @@ bool dc_update_planes_and_stream(struct dc *dc, ...@@ -5104,7 +5104,7 @@ bool dc_update_planes_and_stream(struct dc *dc,
* specially handle compatibility problems with transitions among those * specially handle compatibility problems with transitions among those
* features as they are now transparent to the new sequence. * features as they are now transparent to the new sequence.
*/ */
if (dc->ctx->dce_version > DCN_VERSION_4_01) if (dc->ctx->dce_version >= DCN_VERSION_4_01)
return update_planes_and_stream_v3(dc, srf_updates, return update_planes_and_stream_v3(dc, srf_updates,
surface_count, stream, stream_update); surface_count, stream, stream_update);
return update_planes_and_stream_v2(dc, srf_updates, return update_planes_and_stream_v2(dc, srf_updates,
...@@ -5124,7 +5124,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ...@@ -5124,7 +5124,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
* we get more confident about this change we'll need to enable * we get more confident about this change we'll need to enable
* the new sequence for all ASICs. * the new sequence for all ASICs.
*/ */
if (dc->ctx->dce_version > DCN_VERSION_4_01) { if (dc->ctx->dce_version >= DCN_VERSION_4_01) {
update_planes_and_stream_v3(dc, srf_updates, surface_count, update_planes_and_stream_v3(dc, srf_updates, surface_count,
stream, stream_update); stream, stream_update);
return; return;
......
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