isl: drop min row pitch alignment when set by the driver
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 18 Mar 2020 18:03:53 +0000 (20:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Mar 2020 19:17:10 +0000 (19:17 +0000)
commit507abc395940debf59df19d51fdff071cdb9f6ed
tree4c757e358d43114c28aa023a6315cbb9432028a0
parentdef3470e9bc1c3c4d93b21cf15b7105e4f553dab
isl: drop min row pitch alignment when set by the driver

When the caller of the isl_surf_init() specifies a row pitch, do not
consider the minimum CCS requirement if it's incompatible with the
caller's value.

isl_surf_get_ccs_surf() will check that the main surface alignment
matches CCS expectations.

v2: Simplify checks (Nanley)

v3: Add Comment about isl_surf_get_ccs_surf() (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Fixes: a3f6db2c4e92 ("isl: drop CCS row pitch requirement for linear surfaces")
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4243>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4243>
src/intel/isl/isl.c