Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e750d56d authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher
Browse files

drm/amd/display: Fixed validation return wrong result.

parent 6d732e79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4748,7 +4748,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
		if (ret)
			goto fail;

		if (!dc_validate_global_state(dc, dm_state->context)) {
		if (dc_validate_global_state(dc, dm_state->context) != DC_OK) {
			ret = -EINVAL;
			goto fail;
		}
+1 −1
Original line number Diff line number Diff line
@@ -1716,7 +1716,7 @@ void dc_resource_state_construct(
	dst_ctx->dis_clk = dc->res_pool->display_clock;
}

bool dc_validate_global_state(
enum dc_status dc_validate_global_state(
		struct dc *dc,
		struct dc_state *new_ctx)
{
+1 −1
Original line number Diff line number Diff line
@@ -654,7 +654,7 @@ bool dc_validate_stream(struct dc *dc, struct dc_stream_state *stream);

bool dc_validate_plane(struct dc *dc, const struct dc_plane_state *plane_state);

bool dc_validate_global_state(
enum dc_status dc_validate_global_state(
		struct dc *dc,
		struct dc_state *new_ctx);