diff options
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c index 28745e21b337..a750343ca521 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c @@ -1402,8 +1402,9 @@ void dcn32_update_dsc_pg(struct dc *dc, bool safe_to_disable) { struct dce_hwseq *hws = dc->hwseq; + int i; - for (int i = 0; i < dc->res_pool->res_cap->num_dsc; i++) { + for (i = 0; i < dc->res_pool->res_cap->num_dsc; i++) { struct display_stream_compressor *dsc = dc->res_pool->dscs[i]; bool is_dsc_ungated = hws->funcs.dsc_pg_status(hws, dsc->inst); |