Lines Matching refs:fetch
50 * Perform the fetch from API vertex elements & vertex buffers, to a
60 draw_pt_fetch_prepare(struct pt_fetch *fetch,
65 struct draw_context *draw = fetch->draw;
72 fetch->vertex_size = vertex_size;
140 if (!fetch->translate ||
141 translate_key_compare(&fetch->translate->key, &key) != 0)
144 fetch->translate = translate_cache_find(fetch->cache, &key);
150 draw_pt_fetch_run(struct pt_fetch *fetch,
155 struct draw_context *draw = fetch->draw;
156 struct translate *translate = fetch->translate;
177 draw_pt_fetch_run_linear(struct pt_fetch *fetch,
182 struct draw_context *draw = fetch->draw;
183 struct translate *translate = fetch->translate;
206 struct pt_fetch *fetch = CALLOC_STRUCT(pt_fetch);
207 if (!fetch)
210 fetch->draw = draw;
211 fetch->cache = translate_cache_create();
212 if (!fetch->cache) {
213 FREE(fetch);
217 return fetch;
222 draw_pt_fetch_destroy(struct pt_fetch *fetch)
224 if (fetch->cache)
225 translate_cache_destroy(fetch->cache);
227 FREE(fetch);