Commit 0f0bdca5 authored by Wenjing Liu's avatar Wenjing Liu Committed by Alex Deucher

drm/amd/display: Safe stream encoder id in stream_status

Signed-off-by: default avatarWenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent aaa15026
...@@ -1599,6 +1599,7 @@ enum dc_status resource_map_pool_resources( ...@@ -1599,6 +1599,7 @@ enum dc_status resource_map_pool_resources(
for (i = 0; i < context->stream_count; i++) for (i = 0; i < context->stream_count; i++)
if (context->streams[i] == stream) { if (context->streams[i] == stream) {
context->stream_status[i].primary_otg_inst = pipe_ctx->stream_res.tg->inst; context->stream_status[i].primary_otg_inst = pipe_ctx->stream_res.tg->inst;
context->stream_status[i].stream_enc_inst = pipe_ctx->stream_res.stream_enc->id;
return DC_OK; return DC_OK;
} }
......
...@@ -510,6 +510,7 @@ enum surface_update_type { ...@@ -510,6 +510,7 @@ enum surface_update_type {
struct dc_stream_status { struct dc_stream_status {
int primary_otg_inst; int primary_otg_inst;
int stream_enc_inst;
int plane_count; int plane_count;
struct dc_plane_state *plane_states[MAX_SURFACE_NUM]; struct dc_plane_state *plane_states[MAX_SURFACE_NUM];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment