Home | History | Annotate | Download | only in draw

Lines Matching refs:fetch

56       /* map a fetch element to a draw element */
85 * Add a fetch element and add it to the draw elements.
88 vsplit_add_cache(struct vsplit_frontend *vsplit, unsigned fetch)
92 hash = fetch % MAP_SIZE;
96 if (vsplit->cache.fetches[hash] != fetch) {
98 vsplit->cache.fetches[hash] = fetch;
101 /* add fetch */
103 vsplit->fetch_elts[vsplit->cache.num_fetch_elts++] = fetch;
114 vsplit_get_base_idx(unsigned start, unsigned fetch)
116 return draw_overflow_uadd(start, fetch, MAX_ELT_IDX);
122 #define VSPLIT_CREATE_IDX(elts, start, fetch, elt_bias) \
124 elt_idx = vsplit_get_base_idx(start, fetch); \
130 unsigned start, unsigned fetch, int elt_bias)
133 VSPLIT_CREATE_IDX(elts, start, fetch, elt_bias);
136 unsigned hash = fetch % MAP_SIZE;
145 unsigned start, unsigned fetch, int elt_bias)
148 VSPLIT_CREATE_IDX(elts, start, fetch, elt_bias);
151 unsigned hash = fetch % MAP_SIZE;
160 * Add a fetch element and add it to the draw elements. The fetch element is
165 unsigned start, unsigned fetch, int elt_bias)
168 VSPLIT_CREATE_IDX(elts, start, fetch, elt_bias);
171 unsigned hash = fetch % MAP_SIZE;
185 #define ADD_CACHE(vsplit, ib, start, fetch, bias) vsplit_add_cache_ubyte(vsplit,ib,start,fetch,bias)
190 #define ADD_CACHE(vsplit, ib, start, fetch, bias) vsplit_add_cache_ushort(vsplit,ib,start,fetch, bias)
195 #define ADD_CACHE(vsplit, ib, start, fetch, bias) vsplit_add_cache_uint(vsplit, ib, start, fetch, bias)