[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
diff --git a/system/vulkan_enc/Android.mk b/system/vulkan_enc/Android.mk
index d64bbdb..f603445 100644
--- a/system/vulkan_enc/Android.mk
+++ b/system/vulkan_enc/Android.mk
@@ -41,6 +41,7 @@
     -DVK_NO_PROTOTYPES \
 
 LOCAL_SRC_FILES := Resources.cpp \
+    Validation.cpp \
     VulkanStream.cpp \
     VulkanHandleMapping.cpp \
     ResourceTracker.cpp \