isl: drop CCS row pitch requirement for linear surfaces
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 24 Jan 2020 13:34:36 +0000 (15:34 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 26 Jan 2020 20:46:14 +0000 (20:46 +0000)
commita3f6db2c4e927be7e7d40cbc39c8664030d2af59
tree1568a85b4ce6829d918e2aecd6afe583525214fb
parent397ff2976ba281a7d599b6246b7f6311011eaa0c
isl: drop CCS row pitch requirement for linear surfaces

We were applying row pitch constraint of CCS surfaces to linear
surfaces. But CCS is only supported in linear tiling under some
condition (more on that in the following commit). So let's drop that
requirement for now.

Fixes a bunch of crucible assert where the byte size of a linear image
is expected to be similar to the byte size of buffer for the same
extent in the following category :

   func.miptree.r8g8b8a8-unorm.aspect-color.view-2d.*download-copy-with-draw.*

v2: Move restriction to isl_calc_tiled_min_row_pitch()

v3: Move restrinction to isl_calc_row_pitch_alignment() (Jason)

v4: Update message (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 07e16221d975 ("isl: Round up some pitches to 512B for Gen12's CCS")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3551>
src/intel/isl/isl.c