|
@@ -921,6 +921,25 @@ enum dc_status dce110_validate_global(
|
|
return DC_OK;
|
|
return DC_OK;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static enum dc_status dce110_add_stream_to_ctx(
|
|
|
|
+ struct dc *dc,
|
|
|
|
+ struct dc_state *new_ctx,
|
|
|
|
+ struct dc_stream_state *dc_stream)
|
|
|
|
+{
|
|
|
|
+ enum dc_status result = DC_ERROR_UNEXPECTED;
|
|
|
|
+
|
|
|
|
+ result = resource_map_pool_resources(dc, new_ctx, dc_stream);
|
|
|
|
+
|
|
|
|
+ if (result == DC_OK)
|
|
|
|
+ result = resource_map_clock_resources(dc, new_ctx, dc_stream);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (result == DC_OK)
|
|
|
|
+ result = build_mapped_resource(dc, new_ctx, dc_stream);
|
|
|
|
+
|
|
|
|
+ return result;
|
|
|
|
+}
|
|
|
|
+
|
|
static enum dc_status dce110_validate_guaranteed(
|
|
static enum dc_status dce110_validate_guaranteed(
|
|
struct dc *dc,
|
|
struct dc *dc,
|
|
struct dc_stream_state *dc_stream,
|
|
struct dc_stream_state *dc_stream,
|
|
@@ -1030,6 +1049,7 @@ static const struct resource_funcs dce110_res_pool_funcs = {
|
|
.validate_guaranteed = dce110_validate_guaranteed,
|
|
.validate_guaranteed = dce110_validate_guaranteed,
|
|
.validate_bandwidth = dce110_validate_bandwidth,
|
|
.validate_bandwidth = dce110_validate_bandwidth,
|
|
.acquire_idle_pipe_for_layer = dce110_acquire_underlay,
|
|
.acquire_idle_pipe_for_layer = dce110_acquire_underlay,
|
|
|
|
+ .add_stream_to_ctx = dce110_add_stream_to_ctx,
|
|
.validate_global = dce110_validate_global
|
|
.validate_global = dce110_validate_global
|
|
};
|
|
};
|
|
|
|
|