layers: Moved image/buffer aspect check
authorMark Lobodzinski <mark@lunarg.com>
Tue, 22 Nov 2016 18:18:46 +0000 (11:18 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 23 Nov 2016 14:56:43 +0000 (07:56 -0700)
commit2ca0a769a06cb6fec403593e23ab086a2bb14743
treec8ba66f8872fe9792035d2182551ab0464930f3d
parent7a308cabed0bb6fd909c49c0bf9ee3e3251ec3ae
layers: Moved image/buffer aspect check

Moved this validation check into a routine shared by both
copyImageToBuffer and copyBufferToImage.

Change-Id: If53581cb7dd847492f52b9c2c95b0be25654074f
layers/image.cpp
layers/vk_validation_error_database.txt
tests/layer_validation_tests.cpp