dm_state->context = dc_create_state();
ASSERT(dm_state->context);
- dc_resource_validate_ctx_copy_construct_current(dc, dm_state->context);
+ dc_resource_state_copy_construct_current(dc, dm_state->context);
/* Remove exiting planes if they are modified */
ret = dm_update_planes_state(dc, state, false, &lock_and_validation_needed);
atomic_dec(&context->ref_count);
if (atomic_read(&context->ref_count) == 0) {
- dc_resource_validate_ctx_destruct(context);
+ dc_resource_state_destruct(context);
dm_free(context);
}
}
if (context == NULL)
goto context_alloc_fail;
- dc_resource_validate_ctx_copy_construct(
+ dc_resource_state_copy_construct(
dc->current_state, context);
/*remove old surfaces from context */
/* Preserve refcount */
ref_count = dc->current_state->ref_count;
- dc_resource_validate_ctx_destruct(dc->current_state);
+ dc_resource_state_destruct(dc->current_state);
memset(dc->current_state, 0,
sizeof(*dc->current_state));
dc->current_state->ref_count = ref_count;
}
}
-void dc_resource_validate_ctx_copy_construct_current(
+void dc_resource_state_copy_construct_current(
const struct dc *dc,
struct dc_state *dst_ctx)
{
- dc_resource_validate_ctx_copy_construct(dc->current_state, dst_ctx);
+ dc_resource_state_copy_construct(dc->current_state, dst_ctx);
}
bool dc_validate_global_state(
/*TODO: stereo 3D support and extend pixel encoding colorimetry*/
}
-void dc_resource_validate_ctx_destruct(struct dc_state *context)
+void dc_resource_state_destruct(struct dc_state *context)
{
int i, j;
* Copy src_ctx into dst_ctx and retain all surfaces and streams referenced
* by the src_ctx
*/
-void dc_resource_validate_ctx_copy_construct(
+void dc_resource_state_copy_construct(
const struct dc_state *src_ctx,
struct dc_state *dst_ctx)
{
* No hardware is programmed for call. Only validation is done.
*/
-void dc_resource_validate_ctx_copy_construct(
+void dc_resource_state_copy_construct(
const struct dc_state *src_ctx,
struct dc_state *dst_ctx);
-void dc_resource_validate_ctx_copy_construct_current(
+void dc_resource_state_copy_construct_current(
const struct dc *dc,
struct dc_state *dst_ctx);
-void dc_resource_validate_ctx_destruct(struct dc_state *context);
+void dc_resource_state_destruct(struct dc_state *context);
/*
* TODO update to make it about validation sets