Commit 566ad72b authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/fbc: s/lines/height/

Use the more customary name 'height' instead of 'lines'.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240705145254.3355-10-ville.syrjala@linux.intel.comReviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 6a1738b3
......@@ -203,14 +203,14 @@ static unsigned int intel_fbc_cfb_stride(const struct intel_plane_state *plane_s
static unsigned int intel_fbc_cfb_size(const struct intel_plane_state *plane_state)
{
struct intel_display *display = to_intel_display(plane_state->uapi.plane->dev);
int lines = drm_rect_height(&plane_state->uapi.src) >> 16;
int height = drm_rect_height(&plane_state->uapi.src) >> 16;
if (DISPLAY_VER(display) == 7)
lines = min(lines, 2048);
height = min(height, 2048);
else if (DISPLAY_VER(display) >= 8)
lines = min(lines, 2560);
height = min(height, 2560);
return lines * intel_fbc_cfb_stride(plane_state);
return height * intel_fbc_cfb_stride(plane_state);
}
static u16 intel_fbc_override_cfb_stride(const struct intel_plane_state *plane_state)
......
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