mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
drm/i915/fbc: s/_intel_fbc_cfb_stride()/intel_fbc_plane_cfb_stride()/
_intel_fbc_cfb_stride() calculates the CFB stride the hardware would automagically generate from the plane's stride. Rename the function to intel_fbc_plane_cfb_stride() to better reflect its purpose. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240705145254.3355-4-ville.syrjala@linux.intel.com Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
fd5a9b950e
commit
6c9ee258b1
|
|
@ -140,7 +140,7 @@ static unsigned int intel_fbc_plane_stride(const struct intel_plane_state *plane
|
|||
}
|
||||
|
||||
/* plane stride based cfb stride in bytes, assuming 1:1 compression limit */
|
||||
static unsigned int _intel_fbc_cfb_stride(const struct intel_plane_state *plane_state)
|
||||
static unsigned int intel_fbc_plane_cfb_stride(const struct intel_plane_state *plane_state)
|
||||
{
|
||||
unsigned int cpp = 4; /* FBC always 4 bytes per pixel */
|
||||
|
||||
|
|
@ -181,7 +181,7 @@ static unsigned int skl_fbc_min_cfb_stride(const struct intel_plane_state *plane
|
|||
static unsigned int intel_fbc_cfb_stride(const struct intel_plane_state *plane_state)
|
||||
{
|
||||
struct intel_display *display = to_intel_display(plane_state->uapi.plane->dev);
|
||||
unsigned int stride = _intel_fbc_cfb_stride(plane_state);
|
||||
unsigned int stride = intel_fbc_plane_cfb_stride(plane_state);
|
||||
|
||||
/*
|
||||
* At least some of the platforms require each 4 line segment to
|
||||
|
|
@ -211,7 +211,7 @@ static u16 intel_fbc_override_cfb_stride(const struct intel_plane_state *plane_s
|
|||
{
|
||||
struct intel_display *display = to_intel_display(plane_state->uapi.plane->dev);
|
||||
unsigned int stride_aligned = intel_fbc_cfb_stride(plane_state);
|
||||
unsigned int stride = _intel_fbc_cfb_stride(plane_state);
|
||||
unsigned int stride = intel_fbc_plane_cfb_stride(plane_state);
|
||||
const struct drm_framebuffer *fb = plane_state->hw.fb;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user