/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_draw.c | 136 struct u_indirect_params *draws; in util_draw_indirect_read() local 160 draws = malloc(sizeof(struct u_indirect_params) * draw_count); in util_draw_indirect_read() 161 if (!draws) in util_draw_indirect_read() 173 free(draws); in util_draw_indirect_read() 178 memcpy(&draws[i].info, info_in, sizeof(struct pipe_draw_info)); in util_draw_indirect_read() 179 draws[i].draw.count = params[0]; in util_draw_indirect_read() 180 draws[i].info.instance_count = params[1]; in util_draw_indirect_read() 181 draws[i].draw.start = params[2]; in util_draw_indirect_read() 182 draws[i].draw.index_bias = info_in->index_size ? params[3] : 0; in util_draw_indirect_read() 183 draws[i].info.start_instance = info_in->index_size ? params[4] : params[3]; in util_draw_indirect_read() [all …]
|
D | u_prim_restart.c | 174 struct pipe_draw_start_count_bias *draws; member 194 info->draws = MALLOC(info->max * sizeof(struct pipe_draw_start_count_bias)); in add_range() 195 if (!info->draws) { in add_range() 201 info->draws = REALLOC(info->draws, in add_range() 204 if (!info->draws) { in add_range() 214 info->draws[info->count].start = start; in add_range() 215 info->draws[info->count].count = count; in add_range() 216 info->draws[info->count].index_bias = index_bias; in add_range() 278 return ranges.draws; in util_prim_restart_convert_to_direct()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | IndirectDrawMetadata.cpp | 46 if (batch.draws.size() >= maxDrawCallsPerIndirectValidationBatch) { in AddIndexedIndirectDraw() 59 batch.draws.push_back(std::move(draw)); in AddIndexedIndirectDraw() 66 batch.draws.push_back(std::move(draw)); in AddIndexedIndirectDraw() 73 batch.draws.push_back(std::move(draw)); in AddIndexedIndirectDraw() 88 newBatch.draws.push_back(std::move(draw)); in AddIndexedIndirectDraw() 102 if (max - min <= maxBatchOffsetRange && batch.draws.size() + newBatch.draws.size() <= in AddBatch() 107 batch.draws.insert(batch.draws.end(), newBatch.draws.begin(), newBatch.draws.end()); in AddBatch()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_draw.c | 135 const struct pipe_draw_start_count_bias *draws, in vc4_emit_gl_shader_state() argument 186 unsigned index_bias = info->index_size ? draws->index_bias : 0; in vc4_emit_gl_shader_state() 316 const struct pipe_draw_start_count_bias *draws, in vc4_draw_vbo() argument 320 util_draw_multi(pctx, info, drawid_offset, indirect, draws, num_draws); in vc4_draw_vbo() 324 if (!indirect && (!draws[0].count || !info->instance_count)) in vc4_draw_vbo() 331 !u_trim_pipe_prim(info->mode, (unsigned*)&draws[0].count)) in vc4_draw_vbo() 334 if (vc4_draw_workaround_line_loop_2(pctx, info, drawid_offset, indirect, draws)) in vc4_draw_vbo() 341 vc4_hw_2116_workaround(pctx, draws[0].count); in vc4_draw_vbo() 353 vc4_get_draw_cl_space(job, draws[0].count); in vc4_draw_vbo() 370 unsigned index_bias = info->index_size ? draws->index_bias : 0; in vc4_draw_vbo() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_draw.c | 134 const struct pipe_draw_start_count_bias *draws, in prepare_indexed_draw() argument 142 if (!vbo_get_minmax_indices_gallium(ctx, info, draws, num_draws)) in prepare_indexed_draw() 175 const struct pipe_draw_start_count_bias *draws, in st_draw_gallium() argument 182 if (!prepare_indexed_draw(st, ctx, info, draws, num_draws)) in st_draw_gallium() 185 cso_multi_draw(st->cso_context, info, drawid_offset, draws, num_draws); in st_draw_gallium() 191 const struct pipe_draw_start_count_bias *draws, in st_draw_gallium_multimode() argument 199 if (!prepare_indexed_draw(st, ctx, info, draws, num_draws)) in st_draw_gallium_multimode() 209 cso_multi_draw(cso, info, 0, &draws[first], i - first); in st_draw_gallium_multimode() 343 const struct pipe_draw_start_count_bias *draws, in st_draw_gallium_vertex_state() argument 363 pipe->draw_vertex_state(pipe, state, velem_mask, info, draws, num_draws); in st_draw_gallium_vertex_state() [all …]
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
D | ShapeLayer.cpp | 228 std::vector<sk_sp<sksg::RenderNode >> draws; in attachShape() local 230 const auto add_draw = [this, &draws](sk_sp<sksg::RenderNode> draw, const ShapeRec& rec) { in attachShape() 232 draws.push_back(this->attachBlendMode(rec.fJson, std::move(draw))); in attachShape() 301 if (!draws.empty()) { in attachShape() 302 draws = gDrawEffectAttachers[rec->fInfo.fAttacherIndex](rec->fJson, in attachShape() 304 std::move(draws)); in attachShape() 317 if (draws.size() == 1) { in attachShape() 319 shape_wrapper = std::move(draws.front()); in attachShape() 320 } else if (!draws.empty()) { in attachShape() 322 std::reverse(draws.begin(), draws.end()); in attachShape() [all …]
|
D | Repeater.cpp | 119 std::vector<sk_sp<sksg::RenderNode>>&& draws) in RepeaterAdapter() argument 120 : INHERITED(sk_make_sp<RepeaterRenderNode>(std::move(draws), in RepeaterAdapter() 169 std::vector<sk_sp<sksg::RenderNode>>&& draws) { in AttachRepeaterDrawEffect() argument 174 std::reverse(draws.begin(), draws.end()); in AttachRepeaterDrawEffect() 181 std::move(draws))); in AttachRepeaterDrawEffect() 183 repeater_draws = std::move(draws); in AttachRepeaterDrawEffect()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_draw.c | 223 const struct pipe_draw_start_count_bias *draws, in svga_draw_vbo() argument 227 util_draw_multi(pipe, info, drawid_offset, indirect, draws, num_draws); in svga_draw_vbo() 231 if (!indirect && (!draws[0].count || !info->instance_count)) in svga_draw_vbo() 236 unsigned count = draws[0].count; in svga_draw_vbo() 266 unsigned index_bias = info->index_size ? draws->index_bias : 0; in svga_draw_vbo() 267 if (svga->curr.vertex_id_bias != (draws[0].start + index_bias)) { in svga_draw_vbo() 268 svga->curr.vertex_id_bias = draws[0].start + index_bias; in svga_draw_vbo() 286 r = util_draw_vbo_without_prim_restart(pipe, info, drawid_offset, indirect, &draws[0]); in svga_draw_vbo() 315 ret = svga_swtnl_draw_vbo(svga, info, drawid_offset, indirect, &draws[0]); in svga_draw_vbo() 367 ret = retry_draw_range_elements(svga, info, &draws[0], count); in svga_draw_vbo() [all …]
|
/third_party/mesa3d/src/freedreno/decode/scripts/ |
D | parse-submits.lua | 56 local draws = 0 71 draws = 0 99 if draws == 0 and blits == 0 then 106 if draws > 0 then 109 printf(" # of draws: %u\n", draws) 167 if draws < 10 then 169 elseif allmrts[base] or draws == 0 then 263 if draws > 0 then 406 draws = draws + 1
|
/third_party/mesa3d/src/util/indices/ |
D | u_primconvert.c | 108 const struct pipe_draw_start_count_bias *draws, in primconvert_init_draw() argument 120 unsigned total_index_count = draws->count; in primconvert_init_draw() 123 struct pipe_draw_start_count_bias draw = draws[0]; in primconvert_init_draw() 294 const struct pipe_draw_start_count_bias *draws, in util_primconvert_draw_vbo() argument 312 if (draws[i].count && info->instance_count) in util_primconvert_draw_vbo() 313 util_primconvert_draw_single_vbo(pc, info, drawid, &draws[i]); in util_primconvert_draw_vbo() 331 const struct pipe_draw_start_count_bias *draws, in util_primconvert_draw_vertex_state() argument 338 pc->pipe->draw_vertex_state(pc->pipe, vstate, partial_velem_mask, info, draws, num_draws); in util_primconvert_draw_vertex_state() 344 if (draws[i].count) in util_primconvert_draw_vertex_state() 345 util_primconvert_draw_vertex_state(pc, vstate, partial_velem_mask, info, &draws[i], 1); in util_primconvert_draw_vertex_state() [all …]
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrDashOp.cpp | 363 SkSTArray<kNumStackDashes, DashDraw, true> draws; in onPrepareDraws() local 371 DashDraw& draw = draws.push_back(args); in onPrepareDraws() 585 if (!draws[i].fLineDone) { in onPrepareDraws() 589 draws[i].fStartOffset, draws[i].fDevBloatX, draws[i].fDevBloatY, in onPrepareDraws() 590 draws[i].fLineLength, draws[i].fHalfDevStroke, draws[i].fIntervals[0], in onPrepareDraws() 591 draws[i].fIntervals[1], draws[i].fStrokeWidth, capType); in onPrepareDraws() 598 if (draws[i].fHasStartRect) { in onPrepareDraws() 602 draws[i].fStartOffset, draws[i].fDevBloatX, draws[i].fDevBloatY, in onPrepareDraws() 603 draws[i].fIntervals[0], draws[i].fHalfDevStroke, draws[i].fIntervals[0], in onPrepareDraws() 604 draws[i].fIntervals[1], draws[i].fStrokeWidth, capType); in onPrepareDraws() [all …]
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_draw.cpp | 237 const struct pipe_draw_start_count_bias *draws, in draw_indexed_need_index_buffer_unref() argument 247 draws[i].count, dinfo->instance_count, in draw_indexed_need_index_buffer_unref() 248 0, draws[i].index_bias, dinfo->start_instance); in draw_indexed_need_index_buffer_unref() 256 draws[i].count, dinfo->instance_count, in draw_indexed_need_index_buffer_unref() 257 0, draws[i].index_bias, dinfo->start_instance); in draw_indexed_need_index_buffer_unref() 266 const struct pipe_draw_start_count_bias *draws, in draw_indexed() argument 276 draws[i].count, dinfo->instance_count, in draw_indexed() 277 draws[i].start, draws[i].index_bias, dinfo->start_instance); in draw_indexed() 284 VKCTX(CmdDrawMultiIndexedEXT)(cmdbuf, num_draws, (const VkMultiDrawIndexedInfoEXT*)draws, in draw_indexed() 287 dinfo->index_bias_varies ? NULL : &draws[0].index_bias); in draw_indexed() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | DashOp.cpp | 351 SkSTArray<kNumStackDashes, DashDraw, true> draws; in onPrepareDraws() local 359 DashDraw& draw = draws.push_back(args); in onPrepareDraws() 575 if (!draws[i].fLineDone) { in onPrepareDraws() 578 draws[i].fStartOffset, draws[i].fDevBloatX, in onPrepareDraws() 579 draws[i].fLineLength, draws[i].fIntervals[0], in onPrepareDraws() 580 draws[i].fIntervals[1], draws[i].fStrokeWidth, in onPrepareDraws() 581 draws[i].fPerpendicularScale, in onPrepareDraws() 589 if (draws[i].fHasStartRect) { in onPrepareDraws() 592 draws[i].fStartOffset, draws[i].fDevBloatX, in onPrepareDraws() 593 draws[i].fIntervals[0], draws[i].fIntervals[0], in onPrepareDraws() [all …]
|
/third_party/flutter/skia/modules/skottie/src/layers/ |
D | ShapeLayer.cpp | 356 std::vector<sk_sp<sksg::RenderNode>>&& draws) { in AttachRepeaterDrawEffect() argument 362 if (draws.size() > 1) { in AttachRepeaterDrawEffect() 363 repeater_node = sksg::Group::Make(std::move(draws)); in AttachRepeaterDrawEffect() 365 repeater_node = std::move(draws[0]); in AttachRepeaterDrawEffect() 411 repeater_draws = std::move(draws); in AttachRepeaterDrawEffect() 583 std::vector<sk_sp<sksg::RenderNode >> draws; in attachShape() local 585 const auto add_draw = [this, &draws](sk_sp<sksg::RenderNode> draw, const ShapeRec& rec) { in attachShape() 587 draws.push_back(this->attachBlendMode(rec.fJson, std::move(draw))); in attachShape() 649 if (!draws.empty()) { in attachShape() 650 draws = gDrawEffectAttachers[rec->fInfo.fAttacherIndex](rec->fJson, in attachShape() [all …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_context.c | 218 const struct pipe_draw_start_count_bias *draws, in etna_draw_vbo() argument 222 util_draw_multi(pctx, info, drawid_offset, indirect, draws, num_draws); in etna_draw_vbo() 226 if (!indirect && (!draws[0].count || !info->instance_count)) in etna_draw_vbo() 237 !u_trim_pipe_prim(info->mode, (unsigned*)&draws[0].count)) in etna_draw_vbo() 247 int prims = u_decomposed_prims_for_vertices(info->mode, draws[0].count); in etna_draw_vbo() 266 !util_upload_index_buffer(pctx, info, &draws[0], &indexbuf, &index_offset, 4)) { in etna_draw_vbo() 271 index_offset += draws[0].start * info->index_size; in etna_draw_vbo() 367 ctx->stats.prims_generated += u_reduced_prims_for_vertices(info->mode, draws[0].count); in etna_draw_vbo() 396 draws[0].count, info->index_size ? draws->index_bias : draws[0].start); in etna_draw_vbo() 399 etna_draw_indexed_primitives(ctx->stream, draw_mode, 0, prims, draws->index_bias); in etna_draw_vbo() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_vbo.c | 863 unsigned draws = count, pushes, i; in nvc0_draw_indirect() local 865 draws = MIN2(draws, (NV04_PFIFO_MAX_PACKET_LEN - 4) / size); in nvc0_draw_indirect() 868 draws = MIN2(draws, 32); in nvc0_draw_indirect() 869 pushes = draws; in nvc0_draw_indirect() 877 NVC0_FIFO_PKHDR_1I(0, macro, 3 + !!buf_count + draws * size)); in nvc0_draw_indirect() 880 PUSH_DATA(push, draws); in nvc0_draw_indirect() 890 NVC0_IB_ENTRY_1_NO_PREFETCH | (size * 4 * draws)); in nvc0_draw_indirect() 891 offset += draws * indirect->stride; in nvc0_draw_indirect() 900 count -= draws; in nvc0_draw_indirect() 901 drawid += draws; in nvc0_draw_indirect() [all …]
|
/third_party/flutter/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 48 std::vector<sk_sp<sksg::RenderNode>> draws; in addFragment() local 49 draws.reserve(static_cast<size_t>(fText.fHasFill) + static_cast<size_t>(fText.fHasStroke)); in addFragment() 56 draws.push_back(sksg::Draw::Make(blob_node, rec.fFillColorNode)); in addFragment() 62 draws.push_back(sksg::Draw::Make(blob_node, rec.fStrokeColorNode)); in addFragment() 65 SkASSERT(!draws.empty()); in addFragment() 67 auto draws_node = (draws.size() > 1) in addFragment() 68 ? sksg::Group::Make(std::move(draws)) in addFragment() 69 : std::move(draws[0]); in addFragment()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_render_stencilref.c | 41 const struct pipe_draw_start_count_bias *draws, 111 const struct pipe_draw_start_count_bias *draws, in r300_stencilref_draw_vbo() argument 118 sr->draw_vbo(pipe, info, drawid_offset, NULL, draws, num_draws); in r300_stencilref_draw_vbo() 121 sr->draw_vbo(pipe, info, drawid_offset, NULL, draws, num_draws); in r300_stencilref_draw_vbo() 123 sr->draw_vbo(pipe, info, drawid_offset, NULL, draws, num_draws); in r300_stencilref_draw_vbo()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_draw.c | 271 const struct pipe_draw_start_count_bias *draws) in crocus_indirect_draw_vbo() argument 294 crocus_update_draw_parameters(ice, &info, drawid_offset + i, &indirect, draws); in crocus_indirect_draw_vbo() 296 screen->vtbl.upload_render_state(ice, batch, &info, drawid_offset + i, &indirect, draws); in crocus_indirect_draw_vbo() 360 const struct pipe_draw_start_count_bias *draws, in crocus_draw_vbo() argument 364 util_draw_multi(ctx, info, drawid_offset, indirect, draws, num_draws); in crocus_draw_vbo() 368 if (!indirect && (!draws[0].count || !info->instance_count)) in crocus_draw_vbo() 380 indirect, draws); in crocus_draw_vbo() 400 bool trim = u_trim_pipe_prim(info->mode, (unsigned *)&draws[0].count); in crocus_draw_vbo() 418 crocus_update_draw_info(ice, info, draws); in crocus_draw_vbo() 436 crocus_indirect_draw_vbo(ice, info, drawid_offset, indirect, draws); in crocus_draw_vbo() [all …]
|
/third_party/flutter/skia/tools/lua/ |
D | paths.lua | 15 draws = 0 69 draws = draws + 1 115 io.write("draws = draws + ", draws, "\n");
|
D | paths_agg.lua | 3 draws = 0 16 io.write("Number of draws: ", draws, "\n"); 36 (100*(totalSWPaths / (draws + clips))), "\n")
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_vbo.c | 551 const struct pipe_draw_start_count_bias *draws, argument 555 util_draw_multi(pipe, info, drawid_offset, indirect, draws, num_draws); 559 if (!indirect && (!draws[0].count || !info->instance_count)) 567 !u_trim_pipe_prim(info->mode, (unsigned*)&draws[0].count)) 576 ((info->max_index - info->min_index + 64) < draws[0].count)); 595 nv30_render_vbo(pipe, info, drawid_offset, &draws[0]); 599 nv30_push_vbo(nv30, info, &draws[0]); 622 info->mode, draws[0].start, draws[0].count, 650 info->mode, draws[0].start, draws[0].count, 651 info->instance_count, draws[0].index_bias, info->index_size);
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_draw_arrays.c | 65 const struct pipe_draw_start_count_bias *draws, in softpipe_draw_vbo() argument 69 util_draw_multi(pipe, info, drawid_offset, indirect, draws, num_draws); in softpipe_draw_vbo() 73 if (!indirect && (!draws[0].count || !info->instance_count)) in softpipe_draw_vbo() 144 draw_vbo(draw, info, drawid_offset, indirect, draws, num_draws, 0); in softpipe_draw_vbo()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_draw.c | 239 const struct pipe_draw_start_count_bias *draws, in update_draw_stats() argument 252 prims += u_reduced_prims_for_vertices(info->mode, draws[i].count); in update_draw_stats() 280 const struct pipe_draw_start_count_bias *draws, unsigned num_draws) in_dt in fd_draw_vbo() argument 306 util_draw_multi(pctx, info, drawid_offset, indirect, draws, num_draws); in fd_draw_vbo() 309 if (!util_upload_index_buffer(pctx, info, &draws[0], &indexbuf, in fd_draw_vbo() 322 util_draw_multi(pctx, info, drawid_offset, indirect, draws, num_draws); in fd_draw_vbo() 358 ctx->draw_vbo(ctx, info, drawid_offset, indirect, &draws[i], index_offset); in fd_draw_vbo() 360 batch->num_vertices += draws[i].count * info->instance_count; in fd_draw_vbo() 364 update_draw_stats(ctx, info, draws, num_draws); in fd_draw_vbo() 368 ctx->streamout.offsets[i] += draws[0].count; in fd_draw_vbo()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_draw.cpp | 1437 const struct pipe_draw_start_count_bias *draws, in si_emit_draw_packets() argument 1625 int base_vertex = index_size ? draws[0].index_bias : draws[0].start; in si_emit_draw_packets() 1694 uint64_t va = index_va + draws[i].start * index_size; in si_emit_draw_packets() 1698 radeon_emit(draws[i].index_bias); in si_emit_draw_packets() 1706 radeon_emit(draws[i].count); in si_emit_draw_packets() 1710 sctx->last_base_vertex = draws[num_draws - 1].index_bias; in si_emit_draw_packets() 1716 uint64_t va = index_va + draws[i].start * index_size; in si_emit_draw_packets() 1725 radeon_emit(draws[i].count); in si_emit_draw_packets() 1735 uint64_t va = index_va + draws[i].start * index_size; in si_emit_draw_packets() 1738 radeon_set_sh_reg(sh_base_reg + SI_SGPR_BASE_VERTEX * 4, draws[i].index_bias); in si_emit_draw_packets() [all …]
|