Skip to content

Commit c905aa6

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Rename panic function
Rename dc_plane_force_update_for_panic to dc_plane_force_dcc_and_tiling_disable to describe the function operation in the name. Also, this function might be used in other contexts, and a more generic name can be helpful for this purpose. Reviewed-by: Alvin Lee <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Roman Li <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 098c9b5 commit c905aa6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ static void amdgpu_dm_plane_panic_flush(struct drm_plane *plane)
14301430

14311431
dc_plane_state = dm_plane_state->dc_state;
14321432

1433-
dc_plane_force_update_for_panic(dc_plane_state, fb->modifier ? true : false);
1433+
dc_plane_force_dcc_and_tiling_disable(dc_plane_state, fb->modifier ? true : false);
14341434
}
14351435

14361436
static const struct drm_plane_helper_funcs dm_plane_helper_funcs = {

drivers/gpu/drm/amd/display/dc/core/dc_surface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ void dc_3dlut_func_retain(struct dc_3dlut *lut)
270270
kref_get(&lut->refcount);
271271
}
272272

273-
void dc_plane_force_update_for_panic(struct dc_plane_state *plane_state,
274-
bool clear_tiling)
273+
void dc_plane_force_dcc_and_tiling_disable(struct dc_plane_state *plane_state,
274+
bool clear_tiling)
275275
{
276276
struct dc *dc;
277277
int i;

drivers/gpu/drm/amd/display/dc/dc_plane.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const struct dc_plane_status *dc_plane_get_status(
3434
void dc_plane_state_retain(struct dc_plane_state *plane_state);
3535
void dc_plane_state_release(struct dc_plane_state *plane_state);
3636

37-
void dc_plane_force_update_for_panic(struct dc_plane_state *plane_state,
38-
bool clear_tiling);
37+
void dc_plane_force_dcc_and_tiling_disable(struct dc_plane_state *plane_state,
38+
bool clear_tiling);
3939

4040
#endif /* _DC_PLANE_H_ */

0 commit comments

Comments
 (0)