Fail decoder / SharedContextState creation if context is lost

When the context is lost during creation, on some drivers we may have had bogus values
during initialization for the static queries, which means we might have constructed a
ContextState that's inconsistent with other ContextStates for the same real context,
which causes problems when doing virtualized context switches.
So check reset state after initialization and fail if the context is lost.

Bug: 946978
Change-Id: I38fb73d819dfcedf0565e6b4345c3700c49fbb07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1659644
Commit-Queue: Antoine Labour <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Auto-Submit: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#670301}
8 files changed