aboutsummaryrefslogtreecommitdiff
path: root/layers/threading.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-04-14 12:22:03 -0600
committerTobin Ehlis <tobine@google.com>2016-04-18 09:52:53 -0600
commite5c9df6ae2a39aa55bc0c292574142dc43d2c92e (patch)
tree849511a862aa5e7e039788d9215d4fb0976709b8 /layers/threading.cpp
parent7b9c7df9429752dec171c56c272bef2d8e464715 (diff)
downloadusermoji-e5c9df6ae2a39aa55bc0c292574142dc43d2c92e.tar.xz
layers: Correctly remove secondary cmd buffers from in-flight
Secondary command buffers are considered executing, or "in-flight" at the time they're bound into a primary command buffer. This leads to a couple of corner case bugs if the primary command buffer is never submitted on a queue. This change fixes those bugs: 1. If a secondary cmd buffer is being freed and is in the global in-flight set, remove it if associated primary is not in-flight 2. When a primary cmd buffer is reset, remove its secondary cmd buffers from in-flight
Diffstat (limited to 'layers/threading.cpp')
0 files changed, 0 insertions, 0 deletions