Lines Matching refs:index
30 * hardware. It handles binding new index buffer state, and restoring
147 src = info->has_user_indices ? info->index.user : NULL;
149 /* Map the index range we're interested in (not the whole buffer) */
150 src = pipe_buffer_map_range(pc->pipe, info->index.resource,
172 /* step 2: get a translator function which does nothing but handle any index size conversions
217 /* (step 5: allocate gpu memory sized for the FINAL index count) */
219 &ib_offset, &new_info->index.resource, &dst);
228 * loop over all the direct draws in order to rewrite them into a single index buffer
232 /* step 6a: get the index count for this draw, once converted */
234 /* step 6b: handle index size conversion using the temp buffer; no change in index count
235 * TODO: this step can be optimized out if the index size is known to not change
238 /* step 6c: handle the primitive type conversion rewriting to the converted index count */
240 /* step 6d: increment the temp buffer and mapped final index buffer pointers */
244 /* step 7: set the final index count, which is the converted total index count from the original draw rewrite */
286 pipe_resource_reference(&new_info.index.resource, NULL);
321 struct pipe_resource *buffer = info->index.resource;
354 dinfo.index.resource = vstate->input.indexbuf;
362 new_info.index.resource,
374 pipe_resource_reference(&new_info.index.resource, NULL);