Home
last modified time | relevance | path

Searched refs:draw_count (Results 1 – 25 of 38) sorted by relevance

12

/third_party/mesa3d/src/mesa/main/
Dglthread_draw.c81 unsigned index_size, unsigned draw_count, in upload_multi_indices() argument
95 for (unsigned i = 0, offset = 0; i < draw_count; i++) { in upload_multi_indices()
424 GLsizei draw_count; member
434 const GLsizei draw_count = cmd->draw_count; in _mesa_unmarshal_MultiDrawArrays() local
439 variable_data += sizeof(GLint) * draw_count; in _mesa_unmarshal_MultiDrawArrays()
441 variable_data += sizeof(GLsizei) * draw_count; in _mesa_unmarshal_MultiDrawArrays()
452 (mode, first, count, draw_count)); in _mesa_unmarshal_MultiDrawArrays()
465 GLsizei draw_count, unsigned user_buffer_mask, in multi_draw_arrays_async() argument
468 int first_size = sizeof(GLint) * draw_count; in multi_draw_arrays_async()
469 int count_size = sizeof(GLsizei) * draw_count; in multi_draw_arrays_async()
[all …]
Dtransformfeedback.c114 for (i = 0; i < ARRAY_SIZE(obj->draw_count); i++) in delete_transform_feedback()
115 pipe_so_target_reference(&obj->draw_count[i], NULL); in delete_transform_feedback()
441 obj->targets[i] == obj->draw_count[stream] || in begin_transform_feedback()
499 for (i = 0; i < ARRAY_SIZE(obj->draw_count); i++) in end_transform_feedback()
500 pipe_so_target_reference(&obj->draw_count[i], NULL); in end_transform_feedback()
507 if (!obj->targets[i] || obj->draw_count[stream]) in end_transform_feedback()
510 pipe_so_target_reference(&obj->draw_count[stream], obj->targets[i]); in end_transform_feedback()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_draw.c142 uint32_t draw_count = indirect->draw_count; in util_draw_indirect_read() local
153 draw_count = dc_param[0]; in util_draw_indirect_read()
156 if (!draw_count) { in util_draw_indirect_read()
157 *num_draws = draw_count; in util_draw_indirect_read()
160 draws = malloc(sizeof(struct u_indirect_params) * draw_count); in util_draw_indirect_read()
164 unsigned map_size = (draw_count - 1) * indirect->stride + (num_params * sizeof(uint32_t)); in util_draw_indirect_read()
177 for (unsigned i = 0; i < draw_count; i++) { in util_draw_indirect_read()
187 *num_draws = draw_count; in util_draw_indirect_read()
209 uint32_t draw_count = indirect->draw_count; in util_draw_indirect() local
221 if (dc_param[0] < draw_count) in util_draw_indirect()
[all …]
Du_vbuf.c1433 unsigned draw_count) in u_vbuf_split_indexed_multidraw() argument
1438 if (draw_count > 1 && info->take_index_buffer_ownership) in u_vbuf_split_indexed_multidraw()
1439 p_atomic_add(&info->index.resource->reference.count, draw_count - 1); in u_vbuf_split_indexed_multidraw()
1443 for (unsigned i = 0; i < draw_count; i++) { in u_vbuf_split_indexed_multidraw()
1517 unsigned draw_count = 0; in u_vbuf_draw_vbo() local
1523 4, &draw_count); in u_vbuf_draw_vbo()
1525 draw_count = indirect->draw_count; in u_vbuf_draw_vbo()
1528 if (!draw_count) in u_vbuf_draw_vbo()
1531 unsigned data_size = (draw_count - 1) * indirect->stride + in u_vbuf_draw_vbo()
1552 indirect->stride, draw_count); in u_vbuf_draw_vbo()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_draw.c226 unsigned draw_count = 0; in rewrite_partial_stride_indirect() local
227 …ruct u_indirect_params *new_draws = util_draw_indirect_read(st->pipe, info, indirect, &draw_count); in rewrite_partial_stride_indirect()
230 for (unsigned i = 0; i < draw_count; i++) in rewrite_partial_stride_indirect()
240 unsigned draw_count, in st_indirect_draw_vbo() argument
286 indirect.draw_count = 1; in st_indirect_draw_vbo()
287 for (i = 0; i < draw_count; i++) { in st_indirect_draw_vbo()
292 indirect.draw_count = draw_count; in st_indirect_draw_vbo()
295 (draw_count > 1 || indirect_draw_count)) { in st_indirect_draw_vbo()
332 indirect.count_from_stream_output = tfb_vertcount->draw_count[stream]; in st_draw_transform_feedback()
Dst_draw.h95 unsigned draw_count,
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_shade_pipeline.c384 unsigned draw_count, in fetch_pipeline_run() argument
398 prim_info.count = draw_count; in fetch_pipeline_run()
403 prim_info.primitive_lengths = &draw_count; in fetch_pipeline_run()
442 unsigned draw_count, in fetch_pipeline_linear_run_elts() argument
456 prim_info.count = draw_count; in fetch_pipeline_linear_run_elts()
461 prim_info.primitive_lengths = &draw_count; in fetch_pipeline_linear_run_elts()
Ddraw_pt_fetch_shade_emit.c251 unsigned draw_count, in fse_run() argument
286 draw->render->draw_elements(draw->render, draw_elts, draw_count); in fse_run()
302 unsigned draw_count, in fse_run_linear_elts() argument
328 draw->render->draw_elements(draw->render, draw_elts, draw_count); in fse_run_linear_elts()
Ddraw_pt.h107 unsigned draw_count,
122 unsigned draw_count,
Ddraw_pt_fetch_shade_pipeline_llvm.c798 unsigned draw_count, in llvm_middle_end_run() argument
812 prim_info.count = draw_count; in llvm_middle_end_run()
817 prim_info.primitive_lengths = &draw_count; in llvm_middle_end_run()
856 unsigned draw_count, in llvm_middle_end_linear_run_elts() argument
870 prim_info.count = draw_count; in llvm_middle_end_linear_run_elts()
875 prim_info.primitive_lengths = &draw_count; in llvm_middle_end_linear_run_elts()
/third_party/mesa3d/src/util/indices/
Du_primconvert.c301 unsigned draw_count = 0; in util_primconvert_draw_vbo() local
302 …ruct u_indirect_params *new_draws = util_draw_indirect_read(pc->pipe, info, indirect, &draw_count); in util_primconvert_draw_vbo()
306 for (unsigned i = 0; i < draw_count; i++) in util_primconvert_draw_vbo()
/third_party/mesa3d/src/vulkan/runtime/
Dvk_cmd_enqueue.c51 cmd->u.draw_multi_ext.draw_count = drawCount; in vk_cmd_enqueue_CmdDrawMultiEXT()
89 cmd->u.draw_multi_indexed_ext.draw_count = drawCount; in vk_cmd_enqueue_CmdDrawMultiIndexedEXT()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_vbo_translate.c509 unsigned draw_count = indirect->draw_count; in nvc0_push_vbo_indirect() local
514 draw_count = *count; in nvc0_push_vbo_indirect()
521 for (i = 0; i < draw_count; i++, buf_data += indirect->stride) { in nvc0_push_vbo_indirect()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_draw.cpp803 output_buf_templ.width0 = out_stride * indirect_in->draw_count; in update_draw_indirect_with_sysvals()
815 grid.grid[0] = indirect_in->draw_count; in update_draw_indirect_with_sysvals()
924 if (indirect->draw_count > 1 || in d3d12_draw_vbo()
1226 unsigned draw_count = draw_auto ? 1 : indirect->draw_count; in d3d12_draw_vbo() local
1228 ctx->cmdlist->ExecuteIndirect(cmd_sig, draw_count, indirect_arg_buf, in d3d12_draw_vbo()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_nir.c158 nir_ssa_def *draw_count = in dzn_nir_indirect_draw_shader() local
162 nir_store_ssbo(&b, draw_count, exec_buf_desc, nir_imm_int(&b, 0), in dzn_nir_indirect_draw_shader()
167 nir_push_if(&b, nir_ult(&b, index, draw_count)); in dzn_nir_indirect_draw_shader()
/third_party/mesa3d/src/freedreno/decode/
Dcffdec.c103 static int draw_count; variable
760 draw_count = 0; in cffdec_init()
1038 printf("%4d: %s(%u,%u-%u,%u):%u:", draw_count, primtype, bin_x1, in __do_query()
1838 printl(2, "%sdraw[%i] register values\n", levels[level], draw_count); in dump_register_summary()
1868 draw_count++; in dump_register_summary()
2741 current_draw_count = draw_count; in dump_commands()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c2065 struct pipe_draw_start_count_bias *draws = calloc(cmd->u.draw_multi_ext.draw_count, in handle_draw_multi()
2072 if (cmd->u.draw_multi_ext.draw_count > 1) in handle_draw_multi()
2075 for(unsigned i = 0; i < cmd->u.draw_multi_ext.draw_count; i++) { in handle_draw_multi()
2083 if (cmd->u.draw_multi_indexed_ext.draw_count) in handle_draw_multi()
2084 …state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, draws, cmd->u.draw_multi_ext.draw_count); in handle_draw_multi()
2700 struct pipe_draw_start_count_bias *draws = calloc(cmd->u.draw_multi_indexed_ext.draw_count, in handle_draw_multi_indexed()
2710 if (cmd->u.draw_multi_indexed_ext.draw_count > 1) in handle_draw_multi_indexed()
2716 …unsigned size = cmd->u.draw_multi_indexed_ext.draw_count * sizeof(struct pipe_draw_start_count_bia… in handle_draw_multi_indexed()
2720 if (cmd->u.draw_multi_indexed_ext.draw_count && in handle_draw_multi_indexed()
2725 for (unsigned i = 0; i < cmd->u.draw_multi_indexed_ext.draw_count; i++) in handle_draw_multi_indexed()
[all …]
/third_party/mesa3d/src/gallium/include/pipe/
Dp_state.h763 unsigned draw_count; /**< number of indirect draws */ member
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_draw.cpp819 dindirect->draw_count, dindirect->stride); in zink_draw()
821 …h->state->cmdbuf, indirect->obj->buffer, dindirect->offset, dindirect->draw_count, dindirect->stri… in zink_draw()
854 dindirect->draw_count, dindirect->stride); in zink_draw()
856 …h->state->cmdbuf, indirect->obj->buffer, dindirect->offset, dindirect->draw_count, dindirect->stri… in zink_draw()
/third_party/mesa3d/src/amd/vulkan/
Dradv_cmd_buffer.c6683 uint32_t draw_count, uint64_t count_va, uint32_t stride) in radv_cs_emit_indirect_draw_packet() argument
6706 if (draw_count == 1 && !count_va && !draw_id_enable) { in radv_cs_emit_indirect_draw_packet()
6721 radeon_emit(cs, draw_count); /* count */ in radv_cs_emit_indirect_draw_packet()
6760 uint64_t data_va, uint32_t draw_count, in radv_cs_emit_dispatch_taskmesh_indirect_multi_ace_packet() argument
6805 radeon_emit(cs, draw_count); in radv_cs_emit_dispatch_taskmesh_indirect_multi_ace_packet()
7824 uint32_t draw_count, uint32_t stride) in radv_nv_mesh_indirect_bo() argument
7843 VkDrawIndirectCommand *fill_data = (VkDrawIndirectCommand *) alloca(dst_stride * draw_count); in radv_nv_mesh_indirect_bo()
7845 for (unsigned i = 0; i < draw_count; ++i) in radv_nv_mesh_indirect_bo()
7854 radv_cmd_buffer_upload_data(cmd_buffer, dst_stride * draw_count, fill_data, &out_offset); in radv_nv_mesh_indirect_bo()
7857 ASSERTED unsigned cdw_max = radeon_check_space(ws, cs, 12 * draw_count + 2); in radv_nv_mesh_indirect_bo()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_draw.c213 for (int i = 0; i < indirect.draw_count; i++) { in iris_indirect_draw_vbo()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_draw.c288 for (int i = 0; i < indirect.draw_count; i++) { in crocus_indirect_draw_vbo()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_cmd_buffer.c2329 if (job->always_flush && job->draw_count > 0) { in cmd_buffer_pre_draw_split_job()
2341 assert(job->draw_count == 0); in cmd_buffer_pre_draw_split_job()
2347 assert(job->draw_count == 0 || !job->always_flush); in cmd_buffer_pre_draw_split_job()
2381 if (cmd_buffer->state.job->draw_count > 0) in cmd_buffer_restart_job_for_msaa_if_needed()
2539 job->draw_count++; in v3dv_cmd_buffer_emit_pre_draw()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_draw.c1172 prim.number_of_draw_indirect_indexed_records = indirect->draw_count; in v3d_draw_vbo()
1216 prim.number_of_draw_indirect_array_records = indirect->draw_count; in v3d_draw_vbo()
/third_party/mesa3d/docs/relnotes/
D22.0.2.rst245 - util/draw: handle draw_count=0 when reading indirect parameters

12