From 93f8d88fa3518cc12282eabd3de751a663f27983 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Fri, 31 Dec 2021 17:06:01 -0500 Subject: [PATCH] anv: Disable the SMEM fallback for local memory The fallback is incompatible with allocations that use CCS on XeHP. On that platform, compression can't be used in SMEM. Apps should be okay with this change. They're able to manage local and system memory heaps directly (see VK_EXT_memory_budget). Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_allocator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c index db78b2794e3..599ba3911b9 100644 --- a/src/intel/vulkan/anv_allocator.c +++ b/src/intel/vulkan/anv_allocator.c @@ -1691,9 +1691,7 @@ anv_device_alloc_bo(struct anv_device *device, uint32_t nregions = 0; if (alloc_flags & ANV_BO_ALLOC_LOCAL_MEM) { - /* For vram allocation, still use system memory as a fallback. */ regions[nregions++] = device->physical->vram.region; - regions[nregions++] = device->physical->sys.region; } else { regions[nregions++] = device->physical->sys.region; }