class InflightList
Defined at line 22 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
A convenience class for maintaining a list of inflight command buffers,
by reading completed buffer ids from the notification channel.
Caution, this approach only works for drivers that report completions
in this format.
Note, this class is not threadsafe.
Public Methods
void InflightList ()
Defined at line 24 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
void add (uint64_t buffer_id)
Defined at line 26 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
void release (uint64_t buffer_id)
Defined at line 28 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
size_t size ()
Defined at line 34 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
bool is_inflight (uint64_t buffer_id)
Defined at line 36 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
magma::Status WaitForCompletion (magma_connection_t connection, int64_t timeout_ns)
Wait for a completion; returns true if a completion was
received before |timeout_ms|.
Defined at line 42 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h
void ServiceCompletions (magma_connection_t connection)
Read all outstanding completions and update the inflight list.
Defined at line 51 of file ../../src/graphics/magma/lib/magma_client/test_util/inflight_list.h