drm/amd/display: Clear phantom stream count and plane count
When dc_state_destruct() was refactored the new phantom_stream_count and phantom_plane_count members weren't cleared. Fixes: 012a04b1d6af ("drm/amd/display: Refactor phantom resource allocation") Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
55173942a6
commit
da48914e1f
@ -291,11 +291,14 @@ void dc_state_destruct(struct dc_state *state)
|
|||||||
dc_stream_release(state->phantom_streams[i]);
|
dc_stream_release(state->phantom_streams[i]);
|
||||||
state->phantom_streams[i] = NULL;
|
state->phantom_streams[i] = NULL;
|
||||||
}
|
}
|
||||||
|
state->phantom_stream_count = 0;
|
||||||
|
|
||||||
for (i = 0; i < state->phantom_plane_count; i++) {
|
for (i = 0; i < state->phantom_plane_count; i++) {
|
||||||
dc_plane_state_release(state->phantom_planes[i]);
|
dc_plane_state_release(state->phantom_planes[i]);
|
||||||
state->phantom_planes[i] = NULL;
|
state->phantom_planes[i] = NULL;
|
||||||
}
|
}
|
||||||
|
state->phantom_plane_count = 0;
|
||||||
|
|
||||||
state->stream_mask = 0;
|
state->stream_mask = 0;
|
||||||
memset(&state->res_ctx, 0, sizeof(state->res_ctx));
|
memset(&state->res_ctx, 0, sizeof(state->res_ctx));
|
||||||
memset(&state->pp_display_cfg, 0, sizeof(state->pp_display_cfg));
|
memset(&state->pp_display_cfg, 0, sizeof(state->pp_display_cfg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user