layers: MR105, Add aliasing check for buffer/image overlap
diff --git a/layers/mem_tracker.h b/layers/mem_tracker.h
index d153115..a43c400 100644
--- a/layers/mem_tracker.h
+++ b/layers/mem_tracker.h
@@ -39,6 +39,7 @@
MEMTRACK_NONE, // Used for INFO & other non-error messages
MEMTRACK_INVALID_CB, // Cmd Buffer invalid
MEMTRACK_INVALID_MEM_OBJ, // Invalid Memory Object
+ MEMTRACK_INVALID_ALIASING, // Invalid Memory Aliasing
MEMTRACK_INTERNAL_ERROR, // Bug in Mem Track Layer internal data structures
MEMTRACK_FREED_MEM_REF, // MEM Obj freed while it still has obj and/or CB refs
MEMTRACK_MEM_OBJ_CLEAR_EMPTY_BINDINGS, // Clearing bindings on mem obj that doesn't have any bindings
@@ -194,6 +195,13 @@
std::vector<VkImage> images;
};
+struct MEMORY_RANGE {
+ uint64_t handle;
+ VkDeviceMemory memory;
+ VkDeviceSize start;
+ VkDeviceSize end;
+};
+
#ifdef __cplusplus
}
#endif