layers: Handle memory mapped prior to object binding
authorTobin Ehlis <tobine@google.com>
Wed, 10 Aug 2016 23:00:51 +0000 (17:00 -0600)
committerTobin Ehlis <tobine@google.com>
Mon, 15 Aug 2016 17:26:36 +0000 (11:26 -0600)
commit85c36250a597c7f11be0849eb4a6361a10e37714
tree29e29f56ff4915ee209dce8bc2b7a04779059ba6
parentceba6c6886647f1405724adb418e89a78ca34099
layers: Handle memory mapped prior to object binding

This adds initial support for memory that is updated via a MapMemory() call
prior to an object being bound. Initially any mapped allocation will just have
global_valid set for whole allocation. This value is then picked up by any
ranges made off of that allocation.

Really, we need to create new mapped regions and mark them valid, then make
sure that any overlapped objects pick up valid from mapped regions. This
requires more thought and design, though, so commiting this changes as a
simpler and incomplete initial fix.
layers/core_validation.cpp
layers/core_validation_types.h