layers: GH329, Add MappedMemoryRanges limits checks
authorMark Lobodzinski <mark@lunarg.com>
Mon, 14 Nov 2016 23:28:01 +0000 (16:28 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 16 Nov 2016 21:02:12 +0000 (14:02 -0700)
commit0ca5ece67b29a4be1d15adc62131adda7b65b87a
tree1d3eeb63a23283e7216ce8e3fc2350d9312a60ff
parentb5d21d96f32824e04999e5452d614ff85f48029c
layers: GH329, Add MappedMemoryRanges limits checks

When VkMappedMemoryRange structures are used, the offset and size
members must be a multiple of the device limit nonCoherentAtomSize.
Added these checks in core_validation.

Change-Id: If7eded4c52d31c1a25740ac08ec5434c93c5cecc
layers/core_validation.cpp