Skip to content

Commit

Permalink
Test memory leaks in vkEnumeratePhysicalDevices
Browse files Browse the repository at this point in the history
This change adds dedicated test that checks if vkEnumeratePhysical-
Devices does same amount of memory frees as it does allocations.
Additionally alloc_callback_fail tests were changed so that if
object construction was not successful with given number of
allocations it is attempted one more time with 10000 allowed
allocations. This will mainly affect instance and device
creation tests as they require many allocations and with
this we will be able to detect possible memory leaks.

Components: Vulkan

VK-GL-CTS issue: 149

Affects:
dEQP-VK.api.device_init.enumerate_devices_alloc_leak
dEQP-VK.api.object_management.alloc_callback_fail.*

Change-Id: Ic64054a0753a4ba4fdf3e7ef3104787bf5d2a72b
  • Loading branch information
piby authored and alegal-arm committed Apr 18, 2020
1 parent 015649c commit b9a868b
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 7 deletions.
1 change: 1 addition & 0 deletions android/cts/master/vk-master-2020-03-01.txt
1 change: 1 addition & 0 deletions android/cts/master/vk-master.txt
1 change: 1 addition & 0 deletions external/vulkancts/mustpass/master/vk-default.txt

0 comments on commit b9a868b

Please sign in to comment.