|
@@ -771,7 +771,7 @@ static bool is_surface_pixel_format_supported(struct pipe_ctx *pipe_ctx, unsigne
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
-static enum dc_status validate_mapped_resource(
|
|
|
|
|
|
+static enum dc_status build_mapped_resource(
|
|
const struct core_dc *dc,
|
|
const struct core_dc *dc,
|
|
struct validate_context *context,
|
|
struct validate_context *context,
|
|
struct validate_context *old_context)
|
|
struct validate_context *old_context)
|
|
@@ -781,7 +781,6 @@ static enum dc_status validate_mapped_resource(
|
|
|
|
|
|
for (i = 0; i < context->stream_count; i++) {
|
|
for (i = 0; i < context->stream_count; i++) {
|
|
struct core_stream *stream = context->streams[i];
|
|
struct core_stream *stream = context->streams[i];
|
|
- struct dc_link *link = stream->sink->link;
|
|
|
|
|
|
|
|
if (old_context && resource_is_stream_unchanged(old_context, stream))
|
|
if (old_context && resource_is_stream_unchanged(old_context, stream))
|
|
continue;
|
|
continue;
|
|
@@ -797,29 +796,13 @@ static enum dc_status validate_mapped_resource(
|
|
dc->res_pool->underlay_pipe_index))
|
|
dc->res_pool->underlay_pipe_index))
|
|
return DC_SURFACE_PIXEL_FORMAT_UNSUPPORTED;
|
|
return DC_SURFACE_PIXEL_FORMAT_UNSUPPORTED;
|
|
|
|
|
|
- if (!pipe_ctx->tg->funcs->validate_timing(
|
|
|
|
- pipe_ctx->tg, &stream->public.timing))
|
|
|
|
- return DC_FAIL_CONTROLLER_VALIDATE;
|
|
|
|
-
|
|
|
|
status = dce110_resource_build_pipe_hw_param(pipe_ctx);
|
|
status = dce110_resource_build_pipe_hw_param(pipe_ctx);
|
|
|
|
|
|
if (status != DC_OK)
|
|
if (status != DC_OK)
|
|
return status;
|
|
return status;
|
|
|
|
|
|
- if (!link->link_enc->funcs->validate_output_with_stream(
|
|
|
|
- link->link_enc,
|
|
|
|
- pipe_ctx))
|
|
|
|
- return DC_FAIL_ENC_VALIDATE;
|
|
|
|
-
|
|
|
|
/* TODO: validate audio ASIC caps, encoder */
|
|
/* TODO: validate audio ASIC caps, encoder */
|
|
|
|
|
|
- status = dc_link_validate_mode_timing(stream,
|
|
|
|
- link,
|
|
|
|
- &stream->public.timing);
|
|
|
|
-
|
|
|
|
- if (status != DC_OK)
|
|
|
|
- return status;
|
|
|
|
-
|
|
|
|
resource_build_info_frame(pipe_ctx);
|
|
resource_build_info_frame(pipe_ctx);
|
|
|
|
|
|
/* do not need to validate non root pipes */
|
|
/* do not need to validate non root pipes */
|
|
@@ -976,7 +959,7 @@ enum dc_status dce110_validate_with_context(
|
|
}
|
|
}
|
|
|
|
|
|
if (result == DC_OK)
|
|
if (result == DC_OK)
|
|
- result = validate_mapped_resource(dc, context, old_context);
|
|
|
|
|
|
+ result = build_mapped_resource(dc, context, old_context);
|
|
|
|
|
|
if (result == DC_OK)
|
|
if (result == DC_OK)
|
|
result = resource_build_scaling_params_for_context(dc, context);
|
|
result = resource_build_scaling_params_for_context(dc, context);
|
|
@@ -1005,7 +988,7 @@ enum dc_status dce110_validate_guaranteed(
|
|
result = resource_map_clock_resources(dc, context, NULL);
|
|
result = resource_map_clock_resources(dc, context, NULL);
|
|
|
|
|
|
if (result == DC_OK)
|
|
if (result == DC_OK)
|
|
- result = validate_mapped_resource(dc, context, NULL);
|
|
|
|
|
|
+ result = build_mapped_resource(dc, context, NULL);
|
|
|
|
|
|
if (result == DC_OK) {
|
|
if (result == DC_OK) {
|
|
validate_guaranteed_copy_streams(
|
|
validate_guaranteed_copy_streams(
|