Test over 32k long stride length on icl+
Subsystems (3)
cover Test over 32k long stride length on icl+
Testing part is left with TODO comment for anything older than gen5
Test-with: [email protected]
Juha-Pekka Heikkila (1):
drm/i915: Allow gen11 to use over 32k long strides
drivers/gpu/drm/i915/display/intel_sprite.c | 30 ++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-)
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915: Allow gen11 to use over 32k long strides
The stride in bytes must not exceed the size of 8K pixels. Linear 64 bpp pixel format maximum stride in tiles is 1024 which would mean gen11 support 64k long stride.
Signed-off-by Juha-Pekka Heikkila <[email protected]>
--- drivers/gpu/drm/i915/display/intel_sprite.c | 30 ++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_sprite.c +24 -6
@@ -383,16 +383,34 @@ skl_plane_max_stride(struct intel_plane *plane, unsigned int rotation) {const struct drm_format_info *info =drm_format_info (pixel_format); +struct drm_i915_private *dev_priv =to_i915 (plane->base.dev);int cpp = info->cpp[0 ]; +int max_stride_bytes; + +if (INTEL_GEN (dev_priv) >=11 ) { +/* +* The stride in bytes must not exceed the +* size of 8K pixels. Linear 64 bpp pixel format +* Maximum Stride in tiles = 1024 +* which would mean ICL support 64k long stride. +* Linear modifier seems to not work with maximum length. +*/ +if (modifier ==DRM_FORMAT_MOD_LINEAR ) + max_stride_bytes =65536 -64 ; +else + max_stride_bytes =65536 ; + }else { +/* +* "The stride in bytes must not exceed the +* of the size of 8K pixels and 32K bytes." +*/ + max_stride_bytes =32768 ; + } -/* -* "The stride in bytes must not exceed the -* of the size of 8K pixels and 32K bytes." -*/ if (drm_rotation_90_or_270 (rotation)) -return min (8192 ,32768 / cpp); +return min (8192 , max_stride_bytes / cpp);else -return min (8192 * cpp,32768 ); +return min (8192 * cpp, max_stride_bytes); } static void
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx