Lines Matching refs:pt
72 first = draw->pt.vertices_per_patch; in draw_pt_arrays()
73 incr = draw->pt.vertices_per_patch; in draw_pt_arrays()
101 draw->clip_user) && !draw->pt.test_fse) { in draw_pt_arrays()
108 if (draw->pt.middle.llvm) { in draw_pt_arrays()
109 middle = draw->pt.middle.llvm; in draw_pt_arrays()
112 middle = draw->pt.middle.fetch_emit; in draw_pt_arrays()
113 else if (opt == PT_SHADE && !draw->pt.no_fse) in draw_pt_arrays()
114 middle = draw->pt.middle.fetch_shade_emit; in draw_pt_arrays()
116 middle = draw->pt.middle.general; in draw_pt_arrays()
119 frontend = draw->pt.frontend; in draw_pt_arrays()
122 if (draw->pt.prim != prim || draw->pt.opt != opt) { in draw_pt_arrays()
130 } else if (draw->pt.eltSize != draw->pt.user.eltSize) { in draw_pt_arrays()
142 frontend = draw->pt.front.vsplit; in draw_pt_arrays()
146 draw->pt.frontend = frontend; in draw_pt_arrays()
147 draw->pt.eltSize = draw->pt.user.eltSize; in draw_pt_arrays()
148 draw->pt.prim = prim; in draw_pt_arrays()
149 draw->pt.opt = opt; in draw_pt_arrays()
152 if (draw->pt.rebind_parameters) { in draw_pt_arrays()
155 draw->pt.rebind_parameters = FALSE; in draw_pt_arrays()
167 if (draw->pt.frontend) { in draw_pt_flush()
168 draw->pt.frontend->flush( draw->pt.frontend, flags ); in draw_pt_flush()
172 draw->pt.frontend = NULL; in draw_pt_flush()
176 draw->pt.rebind_parameters = TRUE; in draw_pt_flush()
184 draw->pt.test_fse = debug_get_option_draw_fse(); in draw_pt_init()
185 draw->pt.no_fse = debug_get_option_draw_no_fse(); in draw_pt_init()
187 draw->pt.front.vsplit = draw_pt_vsplit(draw); in draw_pt_init()
188 if (!draw->pt.front.vsplit) in draw_pt_init()
191 draw->pt.middle.fetch_emit = draw_pt_fetch_emit( draw ); in draw_pt_init()
192 if (!draw->pt.middle.fetch_emit) in draw_pt_init()
195 draw->pt.middle.fetch_shade_emit = draw_pt_middle_fse( draw ); in draw_pt_init()
196 if (!draw->pt.middle.fetch_shade_emit) in draw_pt_init()
199 draw->pt.middle.general = draw_pt_fetch_pipeline_or_emit( draw ); in draw_pt_init()
200 if (!draw->pt.middle.general) in draw_pt_init()
205 draw->pt.middle.llvm = draw_pt_fetch_pipeline_or_emit_llvm( draw ); in draw_pt_init()
214 if (draw->pt.middle.llvm) { in draw_pt_destroy()
215 draw->pt.middle.llvm->destroy( draw->pt.middle.llvm ); in draw_pt_destroy()
216 draw->pt.middle.llvm = NULL; in draw_pt_destroy()
219 if (draw->pt.middle.general) { in draw_pt_destroy()
220 draw->pt.middle.general->destroy( draw->pt.middle.general ); in draw_pt_destroy()
221 draw->pt.middle.general = NULL; in draw_pt_destroy()
224 if (draw->pt.middle.fetch_emit) { in draw_pt_destroy()
225 draw->pt.middle.fetch_emit->destroy( draw->pt.middle.fetch_emit ); in draw_pt_destroy()
226 draw->pt.middle.fetch_emit = NULL; in draw_pt_destroy()
229 if (draw->pt.middle.fetch_shade_emit) { in draw_pt_destroy()
230 draw->pt.middle.fetch_shade_emit->destroy( draw->pt.middle.fetch_shade_emit ); in draw_pt_destroy()
231 draw->pt.middle.fetch_shade_emit = NULL; in draw_pt_destroy()
234 if (draw->pt.front.vsplit) { in draw_pt_destroy()
235 draw->pt.front.vsplit->destroy( draw->pt.front.vsplit ); in draw_pt_destroy()
236 draw->pt.front.vsplit = NULL; in draw_pt_destroy()
256 if (draw->pt.user.eltSize) { in draw_print_arrays()
259 switch (draw->pt.user.eltSize) { in draw_print_arrays()
262 const ubyte *elem = (const ubyte *) draw->pt.user.elts; in draw_print_arrays()
268 const ushort *elem = (const ushort *) draw->pt.user.elts; in draw_print_arrays()
274 const uint *elem = (const uint *) draw->pt.user.elts; in draw_print_arrays()
282 ii += draw->pt.user.eltBias; in draw_print_arrays()
284 draw->pt.user.eltBias, ii); in draw_print_arrays()
292 for (j = 0; j < draw->pt.nr_vertex_elements; j++) { in draw_print_arrays()
293 uint buf = draw->pt.vertex_element[j].vertex_buffer_index; in draw_print_arrays()
294 ubyte *ptr = (ubyte *) draw->pt.user.vbuffer[buf].map; in draw_print_arrays()
296 if (draw->pt.vertex_element[j].instance_divisor) { in draw_print_arrays()
297 ii = draw->instance_id / draw->pt.vertex_element[j].instance_divisor; in draw_print_arrays()
300 ptr += draw->pt.vertex_buffer[buf].buffer_offset; in draw_print_arrays()
301 ptr += draw->pt.vertex_buffer[buf].stride * ii; in draw_print_arrays()
302 ptr += draw->pt.vertex_element[j].src_offset; in draw_print_arrays()
305 switch (draw->pt.vertex_element[j].src_format) { in draw_print_arrays()
347 util_format_name(draw->pt.vertex_element[j].src_format)); in draw_print_arrays()
390 const unsigned elt_max = draw->pt.user.eltMax; in draw_pt_arrays_restart()
398 if (draw->pt.user.eltSize) { in draw_pt_arrays_restart()
403 switch (draw->pt.user.eltSize) { in draw_pt_arrays_restart()
406 const ubyte *elt_ub = (const ubyte *) draw->pt.user.elts; in draw_pt_arrays_restart()
412 const ushort *elt_us = (const ushort *) draw->pt.user.elts; in draw_pt_arrays_restart()
418 const uint *elt_ui = (const uint *) draw->pt.user.elts; in draw_pt_arrays_restart()
485 resolve_draw_info(info, &resolved_info, &(draw->pt.vertex_buffer[0])); in draw_vbo()
489 assert(draw->pt.user.elts); in draw_vbo()
493 draw->pt.user.eltBias = info->index_bias; in draw_vbo()
494 draw->pt.user.min_index = info->min_index; in draw_vbo()
495 draw->pt.user.max_index = info->max_index; in draw_vbo()
496 draw->pt.user.eltSize = info->index_size ? draw->pt.user.eltSizeIB : 0; in draw_vbo()
497 draw->pt.user.drawid = info->drawid; in draw_vbo()
499 draw->pt.vertices_per_patch = info->vertices_per_patch; in draw_vbo()
511 for (i = 0; i < draw->pt.nr_vertex_elements; i++) { in draw_vbo()
514 draw->pt.vertex_element[i].src_offset, in draw_vbo()
515 draw->pt.vertex_element[i].instance_divisor, in draw_vbo()
516 draw->pt.vertex_element[i].vertex_buffer_index, in draw_vbo()
517 util_format_name(draw->pt.vertex_element[i].src_format)); in draw_vbo()
520 for (i = 0; i < draw->pt.nr_vertex_buffers; i++) { in draw_vbo()
523 draw->pt.vertex_buffer[i].stride, in draw_vbo()
524 draw->pt.vertex_buffer[i].buffer_offset, in draw_vbo()
525 (int) draw->pt.user.vbuffer[i].size, in draw_vbo()
526 draw->pt.user.vbuffer[i].map); in draw_vbo()
533 index_limit = util_draw_max_index(draw->pt.vertex_buffer, in draw_vbo()
534 draw->pt.vertex_element, in draw_vbo()
535 draw->pt.nr_vertex_elements, in draw_vbo()
554 draw->pt.max_index = index_limit - 1; in draw_vbo()