Lines Matching defs:usage

659                                   unsigned usage)
725 (usage & PIPE_HANDLE_USAGE_SHADER_WRITE && !tex->is_depth && tex->surface.meta_offset) ||
727 (!(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) &&
736 if (!(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) &&
807 res->external_usage |= usage & ~PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
808 if (!(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH))
812 res->external_usage = usage;
1226 if (templ->usage == PIPE_USAGE_STAGING || templ->usage == PIPE_USAGE_STREAM)
1538 unsigned usage, bool dedicated)
1588 tex->buffer.external_usage = usage;
1640 if (dedicated && offset == 0 && !(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) &&
1655 struct winsys_handle *whandle, unsigned usage)
1688 whandle->modifier, usage, true);
1737 resource.usage = PIPE_USAGE_DEFAULT;
1757 unsigned usage, unsigned flags)
1765 res->usage = usage;
1823 unsigned level, unsigned usage, const struct pipe_box *box,
1842 if ((tex->buffer.flags & RADEON_FLAG_ENCRYPTED) && usage & PIPE_MAP_READ)
1855 bool can_invalidate = si_can_invalidate_texture(sctx->screen, tex, usage, box);
1876 else if (usage & PIPE_MAP_READ)
1883 if (si_can_invalidate_texture(sctx->screen, tex, usage, box))
1895 trans->b.b.usage = usage;
1901 unsigned bo_usage = usage & PIPE_MAP_READ ? PIPE_USAGE_STAGING : PIPE_USAGE_STREAM;
1926 if (usage & PIPE_MAP_READ)
1929 usage |= PIPE_MAP_UNSYNCHRONIZED;
1943 usage |= RADEON_MAP_TEMPORARY;
1945 if (!(map = si_buffer_map(sctx, buf, usage)))
1974 if ((transfer->usage & PIPE_MAP_WRITE) && stransfer->staging)
1989 * decrease the total memory usage or make them reusable. The memory
1990 * usage will be slightly higher than given here because of the buffer