Module: Mesa Branch: main Commit: ccb30ae0cd63edb4357f97d2897dc961f4d997b9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccb30ae0cd63edb4357f97d2897dc961f4d997b9
Author: Paulo Zanoni <paulo.r.zan...@intel.com> Date: Mon Oct 23 15:27:23 2023 -0700 anv/sparse: fix limits.sparseAddressSpaceSize when using vm_bind When using vm_bind (not TR-TT), in practice sparse addresses will be allocated from the high_heap, so narrow down the available sparseAddressSpaceSize from the whole address space to the part we can actually allocate things from. Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zan...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25512> --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 85028608366..48b243d9c00 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1744,7 +1744,7 @@ void anv_GetPhysicalDeviceProperties( uint64_t sparse_addr_space_size = !has_sparse_or_fake ? 0 : pdevice->sparse_uses_trtt ? pdevice->va.trtt.size : - 1ULL << 48; + pdevice->va.high_heap.size; VkSampleCountFlags sample_counts = isl_device_get_sample_counts(&pdevice->isl_dev);