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 <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14431>
This commit is contained in:
Nanley Chery 2021-12-31 17:06:01 -05:00 committed by Marge Bot
parent 63096b886f
commit 93f8d88fa3
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}