ac/surface: adapt surf_size when modifying surf_pitch
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 9 Jul 2020 12:10:51 +0000 (14:10 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 10:32:44 +0000 (10:32 +0000)
commit87ecfdfbf0a8448d1475e6da15175e68bdeb933b
tree4b14993a0975dd701af0ab94790eeb727917ec70
parent1fa36c1d3d6af3faa0b647b345acfaaa4b4ce34b
ac/surface: adapt surf_size when modifying surf_pitch

Otherwise we might get VM_L2_PROTECTION_FAULT_STATUS errors.

Fixes: 8275dc1ed57 ("ac/surface: fix epitch when modifying surf_pitch")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5841>
src/amd/common/ac_surface.c