mockicd: Track memory allocation size
authorTobin Ehlis <tobine@google.com>
Wed, 8 Apr 2020 22:07:25 +0000 (16:07 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 9 Apr 2020 22:07:20 +0000 (16:07 -0600)
commitae6787114fb59b76d37b6d8d64752b98bd01ff03
tree6a71e0ed4d81e3044be20a36bf84c68f47808683
parentb40274e432a13ae9c6461c04112c86358b77d7c2
mockicd: Track memory allocation size

Save the size of memory allocations. If a vkMapMemory is called on a
known allocation with VK_WHOLE_SIZE, then map based on the actual size
of the allocation.
icd/generated/mock_icd.cpp
scripts/mock_icd_generator.py