diff options
author | Chad Versace <[email protected]> | 2015-10-07 10:36:46 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-07 10:36:46 -0700 |
commit | d48e71ce55cd63735bedb41c9754b30571a06e8f (patch) | |
tree | 6a5f8e3d50c48aa09e1d8d0cafa781e5bae09c8a /src/vulkan/anv_device.c | |
parent | 81e1dcc42c33d306d490b886b74df62e48eead99 (diff) |
vk/0.170.2: Update VkPhysicalDeviceProperties
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 6473765cebc..310a5b91131 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -314,16 +314,16 @@ VkResult anv_GetPhysicalDeviceFeatures( return VK_SUCCESS; } -VkResult anv_GetPhysicalDeviceLimits( +VkResult anv_GetPhysicalDeviceProperties( VkPhysicalDevice physicalDevice, - VkPhysicalDeviceLimits* pLimits) + VkPhysicalDeviceProperties* pProperties) { - ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice); - const struct brw_device_info *devinfo = physical_device->info; + ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); + const struct brw_device_info *devinfo = pdevice->info; - anv_finishme("Get correct values for PhysicalDeviceLimits"); + anv_finishme("Get correct values for VkPhysicalDeviceLimits"); - *pLimits = (VkPhysicalDeviceLimits) { + VkPhysicalDeviceLimits limits = { .maxImageDimension1D = (1 << 14), .maxImageDimension2D = (1 << 14), .maxImageDimension3D = (1 << 10), @@ -433,21 +433,14 @@ VkResult anv_GetPhysicalDeviceLimits( .lineWidthGranularity = (1.0 / 128.0), }; - return VK_SUCCESS; -} - -VkResult anv_GetPhysicalDeviceProperties( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceProperties* pProperties) -{ - ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); - *pProperties = (VkPhysicalDeviceProperties) { .apiVersion = VK_MAKE_VERSION(0, 138, 1), .driverVersion = 1, .vendorId = 0x8086, .deviceId = pdevice->chipset_id, .deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU, + .limits = limits, + .sparseProperties = {0}, /* Broadwell doesn't do sparse. */ }; strcpy(pProperties->deviceName, pdevice->name); |