[vulkan] Generate code for pre-validation in encoder

bug: 111137294
bug: 120118806

Sometimes, we don't even want to send any bytes over to the host if
there is something really fishy with an API call.

The flush/invalidate range API is especially risky since the user could
end up wanting to set UINT64_MAX and stuff.

As a first step, add mechanism to generate those validation calls in the
guest-side encoder.

Change-Id: Id6034f6e2f55209f099faf4e38be191a835084c6
3 files changed
tree: d571cbf58a50677e090432c004e88495848a2772
  1. registry/