]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/gen9: minimum scanlines for Y tile is not always 4
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 22 Sep 2016 21:00:31 +0000 (18:00 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 11:02:06 +0000 (05:02 -0600)
commitbca8acf64a6a55bb4034fac084adc53182281096
tree220927e2a68bdc06518d42895da060292736301c
parentf74467fb3df1b77b6787287bbcf2a7c0f7000bac
drm/i915/gen9: minimum scanlines for Y tile is not always 4

commit ccc1057477bc99678896b51adce6b6ee4019dc37 upstream.

During watermarks calculations, this value is used in 3 different
places. Only one of them was not using a hardcoded 4. Move the code up
so everybody can benefit from the actual value.

This should only help on situations with Y tiling + 90/270 rotation +
1 or 2 bpp or NV12.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1474578035-424-6-git-send-email-paulo.r.zanoni@intel.com
(cherry picked from commit 1186fa85eb9b3cc0589990fbc39617e50e38759a)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_pm.c