Lines Matching refs:pt
92 draw->clip_user) && !draw->pt.test_fse) { in draw_pt_arrays()
99 if (draw->pt.middle.llvm) { in draw_pt_arrays()
100 middle = draw->pt.middle.llvm; in draw_pt_arrays()
103 middle = draw->pt.middle.fetch_emit; in draw_pt_arrays()
104 else if (opt == PT_SHADE && !draw->pt.no_fse) in draw_pt_arrays()
105 middle = draw->pt.middle.fetch_shade_emit; in draw_pt_arrays()
107 middle = draw->pt.middle.general; in draw_pt_arrays()
110 frontend = draw->pt.frontend; in draw_pt_arrays()
113 if (draw->pt.prim != prim || draw->pt.opt != opt) { in draw_pt_arrays()
121 } else if (draw->pt.eltSize != draw->pt.user.eltSize) { in draw_pt_arrays()
133 frontend = draw->pt.front.vsplit; in draw_pt_arrays()
137 draw->pt.frontend = frontend; in draw_pt_arrays()
138 draw->pt.eltSize = draw->pt.user.eltSize; in draw_pt_arrays()
139 draw->pt.prim = prim; in draw_pt_arrays()
140 draw->pt.opt = opt; in draw_pt_arrays()
143 if (draw->pt.rebind_parameters) { in draw_pt_arrays()
146 draw->pt.rebind_parameters = FALSE; in draw_pt_arrays()
158 if (draw->pt.frontend) { in draw_pt_flush()
159 draw->pt.frontend->flush( draw->pt.frontend, flags ); in draw_pt_flush()
163 draw->pt.frontend = NULL; in draw_pt_flush()
167 draw->pt.rebind_parameters = TRUE; in draw_pt_flush()
175 draw->pt.test_fse = debug_get_option_draw_fse(); in draw_pt_init()
176 draw->pt.no_fse = debug_get_option_draw_no_fse(); in draw_pt_init()
178 draw->pt.front.vsplit = draw_pt_vsplit(draw); in draw_pt_init()
179 if (!draw->pt.front.vsplit) in draw_pt_init()
182 draw->pt.middle.fetch_emit = draw_pt_fetch_emit( draw ); in draw_pt_init()
183 if (!draw->pt.middle.fetch_emit) in draw_pt_init()
186 draw->pt.middle.fetch_shade_emit = draw_pt_middle_fse( draw ); in draw_pt_init()
187 if (!draw->pt.middle.fetch_shade_emit) in draw_pt_init()
190 draw->pt.middle.general = draw_pt_fetch_pipeline_or_emit( draw ); in draw_pt_init()
191 if (!draw->pt.middle.general) in draw_pt_init()
196 draw->pt.middle.llvm = draw_pt_fetch_pipeline_or_emit_llvm( draw ); in draw_pt_init()
205 if (draw->pt.middle.llvm) { in draw_pt_destroy()
206 draw->pt.middle.llvm->destroy( draw->pt.middle.llvm ); in draw_pt_destroy()
207 draw->pt.middle.llvm = NULL; in draw_pt_destroy()
210 if (draw->pt.middle.general) { in draw_pt_destroy()
211 draw->pt.middle.general->destroy( draw->pt.middle.general ); in draw_pt_destroy()
212 draw->pt.middle.general = NULL; in draw_pt_destroy()
215 if (draw->pt.middle.fetch_emit) { in draw_pt_destroy()
216 draw->pt.middle.fetch_emit->destroy( draw->pt.middle.fetch_emit ); in draw_pt_destroy()
217 draw->pt.middle.fetch_emit = NULL; in draw_pt_destroy()
220 if (draw->pt.middle.fetch_shade_emit) { in draw_pt_destroy()
221 draw->pt.middle.fetch_shade_emit->destroy( draw->pt.middle.fetch_shade_emit ); in draw_pt_destroy()
222 draw->pt.middle.fetch_shade_emit = NULL; in draw_pt_destroy()
225 if (draw->pt.front.vsplit) { in draw_pt_destroy()
226 draw->pt.front.vsplit->destroy( draw->pt.front.vsplit ); in draw_pt_destroy()
227 draw->pt.front.vsplit = NULL; in draw_pt_destroy()
247 if (draw->pt.user.eltSize) { in draw_print_arrays()
250 switch (draw->pt.user.eltSize) { in draw_print_arrays()
253 const ubyte *elem = (const ubyte *) draw->pt.user.elts; in draw_print_arrays()
259 const ushort *elem = (const ushort *) draw->pt.user.elts; in draw_print_arrays()
265 const uint *elem = (const uint *) draw->pt.user.elts; in draw_print_arrays()
273 ii += draw->pt.user.eltBias; in draw_print_arrays()
275 draw->pt.user.eltBias, ii); in draw_print_arrays()
283 for (j = 0; j < draw->pt.nr_vertex_elements; j++) { in draw_print_arrays()
284 uint buf = draw->pt.vertex_element[j].vertex_buffer_index; in draw_print_arrays()
285 ubyte *ptr = (ubyte *) draw->pt.user.vbuffer[buf].map; in draw_print_arrays()
287 if (draw->pt.vertex_element[j].instance_divisor) { in draw_print_arrays()
288 ii = draw->instance_id / draw->pt.vertex_element[j].instance_divisor; in draw_print_arrays()
291 ptr += draw->pt.vertex_buffer[buf].buffer_offset; in draw_print_arrays()
292 ptr += draw->pt.vertex_buffer[buf].stride * ii; in draw_print_arrays()
293 ptr += draw->pt.vertex_element[j].src_offset; in draw_print_arrays()
296 switch (draw->pt.vertex_element[j].src_format) { in draw_print_arrays()
338 util_format_name(draw->pt.vertex_element[j].src_format)); in draw_print_arrays()
381 const unsigned elt_max = draw->pt.user.eltMax; in draw_pt_arrays_restart()
389 if (draw->pt.user.eltSize) { in draw_pt_arrays_restart()
394 switch (draw->pt.user.eltSize) { in draw_pt_arrays_restart()
397 const ubyte *elt_ub = (const ubyte *) draw->pt.user.elts; in draw_pt_arrays_restart()
403 const ushort *elt_us = (const ushort *) draw->pt.user.elts; in draw_pt_arrays_restart()
409 const uint *elt_ui = (const uint *) draw->pt.user.elts; in draw_pt_arrays_restart()
472 resolve_draw_info(info, &resolved_info, &(draw->pt.vertex_buffer[0])); in draw_vbo()
477 assert(draw->pt.user.elts); in draw_vbo()
481 draw->pt.user.eltBias = info->index_bias; in draw_vbo()
482 draw->pt.user.min_index = info->min_index; in draw_vbo()
483 draw->pt.user.max_index = info->max_index; in draw_vbo()
484 draw->pt.user.eltSize = info->index_size ? draw->pt.user.eltSizeIB : 0; in draw_vbo()
496 for (i = 0; i < draw->pt.nr_vertex_elements; i++) { in draw_vbo()
499 draw->pt.vertex_element[i].src_offset, in draw_vbo()
500 draw->pt.vertex_element[i].instance_divisor, in draw_vbo()
501 draw->pt.vertex_element[i].vertex_buffer_index, in draw_vbo()
502 util_format_name(draw->pt.vertex_element[i].src_format)); in draw_vbo()
505 for (i = 0; i < draw->pt.nr_vertex_buffers; i++) { in draw_vbo()
508 draw->pt.vertex_buffer[i].stride, in draw_vbo()
509 draw->pt.vertex_buffer[i].buffer_offset, in draw_vbo()
510 (int) draw->pt.user.vbuffer[i].size, in draw_vbo()
511 draw->pt.user.vbuffer[i].map); in draw_vbo()
518 index_limit = util_draw_max_index(draw->pt.vertex_buffer, in draw_vbo()
519 draw->pt.vertex_element, in draw_vbo()
520 draw->pt.nr_vertex_elements, in draw_vbo()
539 draw->pt.max_index = index_limit - 1; in draw_vbo()