|
@@ -653,27 +653,12 @@ dm_atomic_state_alloc(struct drm_device *dev)
|
|
|
return &state->base;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-void dm_atomic_state_clear(struct drm_atomic_state *state)
|
|
|
-{
|
|
|
- struct dm_atomic_state *dm_state = to_dm_atomic_state(state);
|
|
|
-
|
|
|
- if (dm_state->context) {
|
|
|
- dc_resource_validate_ctx_destruct(dm_state->context);
|
|
|
- dm_free(dm_state->context);
|
|
|
- dm_state->context = NULL;
|
|
|
- }
|
|
|
-
|
|
|
- drm_atomic_state_default_clear(state);
|
|
|
-}
|
|
|
-
|
|
|
static const struct drm_mode_config_funcs amdgpu_dm_mode_funcs = {
|
|
|
.fb_create = amdgpu_user_framebuffer_create,
|
|
|
.output_poll_changed = amdgpu_output_poll_changed,
|
|
|
.atomic_check = amdgpu_dm_atomic_check,
|
|
|
.atomic_commit = amdgpu_dm_atomic_commit,
|
|
|
.atomic_state_alloc = dm_atomic_state_alloc,
|
|
|
- .atomic_state_clear = dm_atomic_state_clear,
|
|
|
};
|
|
|
|
|
|
static struct drm_mode_config_helper_funcs amdgpu_dm_mode_config_helperfuncs = {
|