iris: Fix memory alignment when importing dmabuf (GFX12.5)
authorJianxun Zhang <jianxun.zhang@intel.com>
Mon, 12 Jun 2023 20:30:02 +0000 (20:30 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Jun 2023 17:32:10 +0000 (17:32 +0000)
commit8bc7bcfa0c19b402aaaf36b9bc43548dc3c44be7
tree51a18cedec89236593fe39a37742af96350d0b26
parent94d827332f39f537debde50125e3f4f9f5fd34c4
iris: Fix memory alignment when importing dmabuf (GFX12.5)

Fix the failure in modifier tests on MTL:

../src/intel/common/intel_aux_map.c:609: intel_aux_map_add_mapping:
Assertion `(address & get_page_mask(main_page_size)) == 0' failed.

Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20327>
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_resource.c