Lines Matching refs:usage
52 * - batch "usage" is an indicator of when and how a BO was accessed
55 * - usage prevents a BO from being mapped while it has pending+conflicting access
56 * - usage affects pipeline barrier generation for synchronizing reads and writes
57 * - usage MUST be removed before context destruction to avoid crashing during BO
61 * - tracking enables usage to be pruned
67 * - when a buffer is replaced (IFF: resource is bound as a descriptor or usage previously existed)
72 * usage is added:
75 * - any time a descriptor is unbound (IFF: usage previously existed)
78 * usage is removed:
79 * - when tracking is removed (IFF: BO usage == tracking, i.e., this is the last batch that a BO was active on)
82 uint32_t usage;
96 struct zink_batch_usage usage;
227 (void)p_atomic_cmpxchg((uintptr_t *)u, (uintptr_t)&bs->usage, (uintptr_t)NULL);
233 *u = &bs->usage;
239 return u == &bs->usage;
245 return u && (u->usage || u->unflushed);