You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ozone/wayland: do not reset configure state of surface on gpu crash
When gpu crashes and the viz is destroyed, the
channel between the host and the viz destroys.
This results in calling ClearState and then ResetSurfaceContents,
which resets the configure state of the surface, while it has not
been unmapped. Given that the state has been reset, we cannot
submit buffers anymore (even though the channel is established
again, new buffers are created and a new frame has been sent).
Thus, check the current configuration state of the surface
when ResetSurfaceContents is called.
PS This state helps us to identify when the surface has been mapped and
xdg_surface.ack_configure has been called. Once the state is
configured == true, we can submit buffers. Otherwise, it's
illegal in Wayland to attach buffers until a surface has been
configured.
Bug: 1245820
Change-Id: I3fdf9aabaf9769dc28a6d2380d93229bf3931868
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3149776
Commit-Queue: Maksim Sisov <[email protected]>
Reviewed-by: Robert Kroeger <[email protected]>
Cr-Commit-Position: refs/heads/main@{#919823}
0 commit comments