Lines Matching full:stride
123 /* plane stride in pixels */
127 unsigned int stride; in intel_fbc_plane_stride() local
129 stride = plane_state->view.color_plane[0].mapping_stride; in intel_fbc_plane_stride()
131 stride /= fb->format->cpp[0]; in intel_fbc_plane_stride()
133 return stride; in intel_fbc_plane_stride()
136 /* plane stride based cfb stride in bytes, assuming 1:1 compression limit */
144 /* minimum acceptable cfb stride in bytes, assuming 1:1 compression limit */
152 unsigned int stride; in skl_fbc_min_cfb_stride() local
154 /* minimum segment stride we can use */ in skl_fbc_min_cfb_stride()
155 stride = width * cpp * height / limit; in skl_fbc_min_cfb_stride()
162 stride += 64; in skl_fbc_min_cfb_stride()
168 stride = ALIGN(stride, 512); in skl_fbc_min_cfb_stride()
171 return stride * limit / height; in skl_fbc_min_cfb_stride()
174 /* properly aligned cfb stride in bytes, assuming 1:1 compression limit */
178 unsigned int stride = _intel_fbc_cfb_stride(plane_state); in intel_fbc_cfb_stride() local
186 return max(ALIGN(stride, 512), skl_fbc_min_cfb_stride(plane_state)); in intel_fbc_cfb_stride()
188 return stride; in intel_fbc_cfb_stride()
208 unsigned int stride = _intel_fbc_cfb_stride(plane_state); in intel_fbc_override_cfb_stride() local
212 * Override stride in 64 byte units per 4 line segment. in intel_fbc_override_cfb_stride()
214 * Gen9 hw miscalculates cfb stride for linear as in intel_fbc_override_cfb_stride()
218 if (stride != stride_aligned || in intel_fbc_override_cfb_stride()
854 unsigned int stride = intel_fbc_plane_stride(plane_state) * in stride_is_valid() local
858 if (drm_WARN_ON_ONCE(&i915->drm, (stride & (64 - 1)) != 0)) in stride_is_valid()
862 if (stride < 512) in stride_is_valid()
866 return stride == 4096 || stride == 8192; in stride_is_valid()
868 if (DISPLAY_VER(i915) == 4 && !IS_G4X(i915) && stride < 2048) in stride_is_valid()
873 fb->modifier == DRM_FORMAT_MOD_LINEAR && stride & 511) in stride_is_valid()
876 if (stride > 16384) in stride_is_valid()
1123 plane_state->no_fbc_reason = "stride not supported"; in intel_fbc_check_plane()