• Antoine Labour's avatar
    Fail decoder / SharedContextState creation if context is lost · 6736a9c5
    Antoine Labour authored
    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 <piman@chromium.org>
    Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Auto-Submit: Antoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#670301}
    6736a9c5
gles2_cmd_decoder.cc 769 KB