anv/image: Use align_u64 for image offsets
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 1 Apr 2020 22:24:10 +0000 (17:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Apr 2020 15:08:42 +0000 (15:08 +0000)
commit5cc27d59a11ed11081b3f5c9acc3280ec412ebed
tree08d8b459634407a9b1518cce8c3bcb38c4e5b8c6
parent4e3a7dcf6ee4946c46ae8b35e7883a49859ef6fb
anv/image: Use align_u64 for image offsets

The ALIGN functions in util/u_math.h work on uintptr_t whose size
changes depending on your platform.  Use ones which take an explicit
64-bit type instead to avoid 32-bit platform issues.

Cc: mesa-stable@lists.freedesktop.org
Reported-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4414>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4414>
src/intel/vulkan/anv_image.c