layers: Consolidate VkDeviceMemory maps into a single map
authorTobin Ehlis <tobine@google.com>
Wed, 16 Mar 2016 22:00:36 +0000 (16:00 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 17 Mar 2016 19:19:25 +0000 (13:19 -0600)
commit1723b02c43c698c134db735d88a6f801c334a768
treea5fb2bc700d2ec5d8f12c72483ec313ffe1c517f
parent77facb532e47227f6bb57eed97bcf8fc5ef64331
layers: Consolidate VkDeviceMemory maps into a single map

There were three separate maps in core_validation.cpp that used VkDeviceMemory for key.
This change consolidates those maps into a single map with DEVICE_MEM_INFO as the value.
To accomadate this I added data to DEVICE_MEM_INFO struct to track mapped image/buffer
ranges as well as image reference for memory with mapped image.
layers/core_validation.cpp
layers/core_validation.h