diff --git a/.pick_status.json b/.pick_status.json index 44216e92a1d..3ee4dd1762b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -23594,7 +23594,7 @@ "description": "anv: No compression on host memory allocation (xe2)", "nominated": false, "nomination_type": 0, - "resolution": 4, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c index b50cc2fe407..ce7987160bd 100644 --- a/src/intel/vulkan/anv_allocator.c +++ b/src/intel/vulkan/anv_allocator.c @@ -1886,6 +1886,7 @@ anv_device_import_bo_from_host_ptr(struct anv_device *device, ANV_BO_ALLOC_HOST_COHERENT | ANV_BO_ALLOC_AUX_CCS | ANV_BO_ALLOC_PROTECTED | + ANV_BO_ALLOC_COMPRESSED | ANV_BO_ALLOC_FIXED_ADDRESS))); assert(alloc_flags & ANV_BO_ALLOC_EXTERNAL); diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index dc636587d98..4c336a63373 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1811,8 +1811,10 @@ VkResult anv_GetMemoryHostPointerPropertiesEXT( switch (handleType) { case VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT: - /* Host memory can be imported as any memory type. */ + pMemoryHostPointerProperties->memoryTypeBits = + device->info->ver >= 20 ? + device->physical->memory.default_buffer_mem_types : (1ull << device->physical->memory.type_count) - 1; return VK_SUCCESS;