Lines Matching refs:usage
126 if (ptrans->usage & PIPE_MAP_WRITE) {
174 if (!trans->rsc && !(ptrans->usage & PIPE_MAP_UNSYNCHRONIZED))
178 (ptrans->usage & PIPE_MAP_WRITE)) {
193 unsigned usage,
211 if ((usage & PIPE_MAP_WRITE) &&
216 usage |= PIPE_MAP_UNSYNCHRONIZED;
223 if ((usage & PIPE_MAP_DISCARD_RANGE) &&
224 !(usage & PIPE_MAP_UNSYNCHRONIZED) &&
230 usage |= PIPE_MAP_DISCARD_WHOLE_RESOURCE;
236 ptrans->usage = usage;
268 if (usage & PIPE_MAP_DIRECTLY) {
270 BUG("unsupported map flags %#x with tile status/tiled layout", usage);
313 if (!(usage & PIPE_MAP_DISCARD_WHOLE_RESOURCE))
376 if (trans->rsc || !(usage & PIPE_MAP_UNSYNCHRONIZED)) {
383 * current GPU usage (reads must wait for GPU writes, writes must have
388 (((usage & PIPE_MAP_READ) && (status & ETNA_PENDING_WRITE)) ||
389 ((usage & PIPE_MAP_WRITE) && status)))) {
393 if (usage & PIPE_MAP_READ)
395 if (usage & PIPE_MAP_WRITE)
403 if ((usage & PIPE_MAP_READ) && etna_etc2_needs_patching(prsc))
426 if (usage & PIPE_MAP_READ)
437 if (usage & PIPE_MAP_DIRECTLY)
449 if (usage & PIPE_MAP_READ) {