Fence11: When busy looping on a fence, test for device loss
Fence11: When busy looping on a fence, test for device loss

Previously the code only checked is the device had already seen as lost
but never updating the lost status. Since checking for device loss can be
expensive, only do it every 128 loop iterations.

BUG=angleproject:1463

Change-Id: Ib481aebbb73d0f279e7ef835ac3a96c0a4663d58
Reviewed-on: https://chromium-review.googlesource.com/365736
Reviewed-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>
Reviewed-by: Geoff Lang <b6fc25fe0362055230985c05cbfa8adb741ccc0f@chromium.org>
Commit-Queue: Corentin Wallez <470c533e86f4f848c98c7e11fffc2d043494a401@chromium.org>

MSOpenTech/angle,ecoal95/angle,MSOpenTech/angle,MSOpenTech/angle,ppy/angle,ecoal95/angle,ppy/angle,ppy/angle,MSOpenTech/angle,ecoal95/angle,ecoal95/angle,ecoal95/angle,ppy/angle