gpu: Workaround for NV12 dynamic textures used for software video frames

Map usage STAGING texture along with copy to usage DEFAULT texture to
workaround crashes when mapping usage DYNAMIC textures.  Restrict
workaround to Intel driver versions < 24 based on crash data.

Also add a few trace events for swap buffers, texture upload, blit, etc.

Bug: 890227
Change-Id: I1cc9bae3fc0ddf6303375c99054113a9a995806c
Reviewed-by: Zhenyao Mo <>
Commit-Queue: Sunny Sachanandani <>
Cr-Commit-Position: refs/heads/master@{#652734}
4 files changed