mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
vulkan: remove the VkPhysicalDeviceMemoryProperties workaround
cts fix landed in vulkan-cts-1.2.5 while mesa CI has bumped once. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Reviewed-by: Chad Versace <chadversary@chromium.org> Tested-by: Mark Janes <markjanes@swizzler.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16694>
This commit is contained in:
parent
10b6d9230c
commit
a19e1f338e
1 changed files with 1 additions and 15 deletions
|
|
@ -173,21 +173,7 @@ vk_common_GetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice,
|
||||||
|
|
||||||
pdevice->dispatch_table.GetPhysicalDeviceMemoryProperties2(physicalDevice,
|
pdevice->dispatch_table.GetPhysicalDeviceMemoryProperties2(physicalDevice,
|
||||||
&props2);
|
&props2);
|
||||||
/* dEQP-VK.api.info.get_physical_device_properties2.memory_properties memsets
|
*pMemoryProperties = props2.memoryProperties;
|
||||||
* the struct to 0xcd and expects that the unused array elements are
|
|
||||||
* untouched.
|
|
||||||
*/
|
|
||||||
pMemoryProperties->memoryHeapCount = props2.memoryProperties.memoryHeapCount;
|
|
||||||
for (int i = 0; i < pMemoryProperties->memoryHeapCount; i++) {
|
|
||||||
pMemoryProperties->memoryHeaps[i].flags = props2.memoryProperties.memoryHeaps[i].flags;
|
|
||||||
pMemoryProperties->memoryHeaps[i].size = props2.memoryProperties.memoryHeaps[i].size;
|
|
||||||
}
|
|
||||||
|
|
||||||
pMemoryProperties->memoryTypeCount = props2.memoryProperties.memoryTypeCount;
|
|
||||||
for (int i = 0; i < pMemoryProperties->memoryTypeCount; i++) {
|
|
||||||
pMemoryProperties->memoryTypes[i].heapIndex = props2.memoryProperties.memoryTypes[i].heapIndex;
|
|
||||||
pMemoryProperties->memoryTypes[i].propertyFlags = props2.memoryProperties.memoryTypes[i].propertyFlags;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VKAPI_ATTR void VKAPI_CALL
|
VKAPI_ATTR void VKAPI_CALL
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue