[Intel-gfx] [PATCH 11/89] drm/i915/skl: Framebuffers need to be aligned to 256Kb on Skylake
Thomas Wood
thomas.wood at intel.com
Tue Sep 16 16:54:52 CEST 2014
On 4 September 2014 12:26, Damien Lespiau <damien.lespiau at intel.com> wrote:
> Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Does the X tiling alignment value need to be set too?
A minor point, but perhaps use KB in the subject rather than Kb?
> ---
> drivers/gpu/drm/i915/intel_display.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 22d3902..02236f9 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -2199,7 +2199,9 @@ intel_pin_and_fence_fb_obj(struct drm_device *dev,
>
> switch (obj->tiling_mode) {
> case I915_TILING_NONE:
> - if (IS_BROADWATER(dev) || IS_CRESTLINE(dev))
> + if (INTEL_INFO(dev)->gen >= 9)
> + alignment = 256 * 1024;
> + else if (IS_BROADWATER(dev) || IS_CRESTLINE(dev))
> alignment = 128 * 1024;
> else if (INTEL_INFO(dev)->gen >= 4)
> alignment = 4 * 1024;
> --
> 1.8.3.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list