From d0fea83d7bcb960e5a68d15fc8ecc217b2573d19 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 3 Sep 2022 00:03:48 -0500 Subject: [PATCH] hasvk: Rip out local memory support Things could probably be simplified further but this at least gets rid of most of the dead code and the dead flags and fields. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan_hasvk/anv_device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/intel/vulkan_hasvk/anv_device.c b/src/intel/vulkan_hasvk/anv_device.c index f8a5678e091..76dbd0945a4 100644 --- a/src/intel/vulkan_hasvk/anv_device.c +++ b/src/intel/vulkan_hasvk/anv_device.c @@ -385,7 +385,6 @@ anv_update_meminfo(struct anv_physical_device *device, int fd) device->sys.available = devinfo->mem.sram.mappable.free; } - static VkResult anv_physical_device_init_heaps(struct anv_physical_device *device, int fd) { @@ -1757,9 +1756,7 @@ void anv_GetPhysicalDeviceProperties( .driverVersion = vk_get_driver_version(), .vendorID = 0x8086, .deviceID = pdevice->info.pci_device_id, - .deviceType = pdevice->info.has_local_mem ? - VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU : - VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU, + .deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU, .limits = limits, .sparseProperties = {0}, /* Broadwell doesn't do sparse. */ };