intel: protect against empty invalidate ranges
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 12 Jul 2022 08:20:10 +0000 (11:20 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Jul 2022 01:33:27 +0000 (01:33 +0000)
commit1aeb11cde1bc610cb23343ab507b1bf3b197b1b4
tree9037272d3a03779c7da7b3d00186b75b4adc9db7
parent105279e98962c6c31cb61acc6ec3b86e6bc57b33
intel: protect against empty invalidate ranges

It's legal for an application to call vkInvalidateMappedMemoryRanges()
/ vkFlushMappedMemoryRanges() with zero sized ranges.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: b91971c240d3 ("anv: use the right helper to invalidate memory")
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6852
Reviewed-by: Marcin Ĺšlusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17481>
src/intel/common/intel_clflush.h