Skip to content

Commit e9e476f

Browse files
digetxthierryreding
authored andcommitted
drm/tegra: plane: Rename bottom_up to reflect_y
This makes the naming consistent with the DRM core. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 5f1df70 commit e9e476f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

drivers/gpu/drm/tegra/dc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static void tegra_dc_setup_window(struct tegra_plane *plane,
404404
tegra_plane_writel(plane, window->stride[0], DC_WIN_LINE_STRIDE);
405405
}
406406

407-
if (window->bottom_up)
407+
if (window->reflect_y)
408408
v_offset += window->src.h - 1;
409409

410410
tegra_plane_writel(plane, h_offset, DC_WINBUF_ADDR_H_OFFSET);
@@ -470,7 +470,7 @@ static void tegra_dc_setup_window(struct tegra_plane *plane,
470470
value |= COLOR_EXPAND;
471471
}
472472

473-
if (window->bottom_up)
473+
if (window->reflect_y)
474474
value |= V_DIRECTION;
475475

476476
if (tegra_plane_use_horizontal_filtering(plane, window)) {
@@ -642,9 +642,9 @@ static int tegra_plane_atomic_check(struct drm_plane *plane,
642642
rotation = drm_rotation_simplify(state->rotation, rotation);
643643

644644
if (rotation & DRM_MODE_REFLECT_Y)
645-
plane_state->bottom_up = true;
645+
plane_state->reflect_y = true;
646646
else
647-
plane_state->bottom_up = false;
647+
plane_state->reflect_y = false;
648648

649649
/*
650650
* Tegra doesn't support different strides for U and V planes so we
@@ -706,7 +706,7 @@ static void tegra_plane_atomic_update(struct drm_plane *plane,
706706
window.dst.w = drm_rect_width(&plane->state->dst);
707707
window.dst.h = drm_rect_height(&plane->state->dst);
708708
window.bits_per_pixel = fb->format->cpp[0] * 8;
709-
window.bottom_up = tegra_fb_is_bottom_up(fb) || state->bottom_up;
709+
window.reflect_y = tegra_fb_is_bottom_up(fb) || state->reflect_y;
710710

711711
/* copy from state */
712712
window.zpos = plane->state->normalized_zpos;

drivers/gpu/drm/tegra/dc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ struct tegra_dc_window {
136136
unsigned int stride[2];
137137
unsigned long base[3];
138138
unsigned int zpos;
139-
bool bottom_up;
139+
bool reflect_y;
140140

141141
struct tegra_bo_tiling tiling;
142142
u32 format;

drivers/gpu/drm/tegra/plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ tegra_plane_atomic_duplicate_state(struct drm_plane *plane)
6161
copy->tiling = state->tiling;
6262
copy->format = state->format;
6363
copy->swap = state->swap;
64-
copy->bottom_up = state->bottom_up;
64+
copy->reflect_y = state->reflect_y;
6565
copy->opaque = state->opaque;
6666

6767
for (i = 0; i < 2; i++)

drivers/gpu/drm/tegra/plane.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct tegra_plane_state {
4646
u32 format;
4747
u32 swap;
4848

49-
bool bottom_up;
49+
bool reflect_y;
5050

5151
/* used for legacy blending support only */
5252
struct tegra_plane_legacy_blending_state blending[2];

0 commit comments

Comments
 (0)