summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2021-10-27 01:50:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 19:17:11 +0100
commit2cf82ea0a46d2b962652ad7aa9f0581a3bf284e3 (patch)
tree6efa50260ec3e12bcba0606816f2e229553995be /init
parentfea0b9507bb7e03a9414301fe8c09e44f7f70a13 (diff)
drm/i915/fb: Fix rounding error in subsampled plane size calculation
[ Upstream commit 90ab96f3872eae816f4e07deaa77322a91237960 ] For NV12 FBs with odd main surface tile-row height the CCS surface height was incorrectly calculated 1 less than the actual value. Fix this by rounding up the result of divison. For consistency do the same for the CCS surface width calculation. Fixes: b3e57bccd68a ("drm/i915/tgl: Gen-12 render decompression") Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211026225105.2783797-2-imre.deak@intel.com (cherry picked from commit 2ee5ef9c934ad26376c9282171e731e6c0339815) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions