[vulkan] Add validation mechanism to encoder

bug: 111137294
bug: 120118806

The places where validation interfaces with the encoder will
be autogenerated, while the logic of it is not...for now at least.

First, validate the flush/invalidate APIs to some approx degree
(it doesnt currently care whether the host visible regions were
actually mapped at the user level)

Change-Id: I0f942a8c889eb0dcd164b2fa12ef1b01ab617762
6 files changed