iris: Handle importing aux-enabled surfaces on TGL
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 5 Dec 2019 20:19:33 +0000 (12:19 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 23:32:29 +0000 (23:32 +0000)
commitc19492bcdb9ff5c5bf4092d2daff6e2e5d7bce1b
tree94d112279810240b215aca7c1ee09218959852cb
parent4ed6e43988e2356265e5f0fdc06f0bf8b59ad475
iris: Handle importing aux-enabled surfaces on TGL

Ensure main surfaces are properly 64KB-aligned (as suggested by Jordan)
and map the main surface addresses to aux surface addresses on import.

v2. Add a Bspec quote. (Sagar)
v3. Add a bit more to the Bspec comment. (Ken)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> (v2)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5420>
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_resource.c