Home
last modified time | relevance | path

Searched refs:emit (Results 1 – 25 of 1479) sorted by relevance

12345678910>>...60

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_vgpu10.c490 static void emit_tcs_input_declarations(struct svga_shader_emitter_v10 *emit);
491 static void emit_tcs_output_declarations(struct svga_shader_emitter_v10 *emit);
492 static boolean emit_temporaries_declaration(struct svga_shader_emitter_v10 *emit);
493 static boolean emit_constant_declaration(struct svga_shader_emitter_v10 *emit);
494 static boolean emit_sampler_declarations(struct svga_shader_emitter_v10 *emit);
495 static boolean emit_resource_declarations(struct svga_shader_emitter_v10 *emit);
496 static boolean emit_vgpu10_immediates_block(struct svga_shader_emitter_v10 *emit);
497 static boolean emit_index_range_declaration(struct svga_shader_emitter_v10 *emit);
498 static void emit_image_declarations(struct svga_shader_emitter_v10 *emit);
499 static void emit_shader_buf_declarations(struct svga_shader_emitter_v10 *emit);
[all …]
Dsvga_tgsi_insn.c38 static boolean emit_vs_postamble( struct svga_shader_emitter *emit );
39 static boolean emit_ps_postamble( struct svga_shader_emitter *emit );
87 translate_dst_register( struct svga_shader_emitter *emit, in translate_dst_register() argument
99 dest = emit->output_map[reg->Register.Index]; in translate_dst_register()
100 emit->num_output_writes++; in translate_dst_register()
165 svga_arl_needs_adjustment( const struct svga_shader_emitter *emit ) in svga_arl_needs_adjustment() argument
169 for (i = 0; i < emit->num_arl_consts; ++i) { in svga_arl_needs_adjustment()
170 if (emit->arl_consts[i].arl_num == emit->current_arl) in svga_arl_needs_adjustment()
178 svga_arl_adjustment( const struct svga_shader_emitter *emit ) in svga_arl_adjustment() argument
182 for (i = 0; i < emit->num_arl_consts; ++i) { in svga_arl_adjustment()
[all …]
Dsvga_tgsi_decl_sm30.c39 translate_vs_ps_semantic(struct svga_shader_emitter *emit, in translate_vs_ps_semantic() argument
67 *idx = svga_remap_generic_index(emit->key.generic_remap_table, in translate_vs_ps_semantic()
99 emit_decl(struct svga_shader_emitter *emit, in emit_decl() argument
120 return (emit_instruction(emit, opcode) && in emit_decl()
121 svga_shader_emit_dwords(emit, dcl.values, ARRAY_SIZE(dcl.values))); in emit_decl()
129 emit_vface_decl(struct svga_shader_emitter *emit) in emit_vface_decl() argument
131 if (!emit->emitted_vface) { in emit_vface_decl()
135 if (!emit_decl(emit, reg, 0, 0)) in emit_vface_decl()
138 emit->emitted_vface = TRUE; in emit_vface_decl()
149 ps30_input_emit_depth_fog(struct svga_shader_emitter *emit, in ps30_input_emit_depth_fog() argument
[all …]
Dsvga_tgsi.c55 svga_shader_expand(struct svga_shader_emitter *emit) in svga_shader_expand() argument
58 unsigned newsize = emit->size * 2; in svga_shader_expand()
60 if (emit->buf != err_buf) in svga_shader_expand()
61 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand()
66 emit->ptr = err_buf; in svga_shader_expand()
67 emit->buf = err_buf; in svga_shader_expand()
68 emit->size = sizeof(err_buf); in svga_shader_expand()
72 emit->size = newsize; in svga_shader_expand()
73 emit->ptr = new_buf + (emit->ptr - emit->buf); in svga_shader_expand()
74 emit->buf = new_buf; in svga_shader_expand()
[all …]
/third_party/python/Parser/
Dasdl_c.py119 def emit(self, s, depth, reflow=True): member in EmitVisitor
153 self.emit(s, depth)
154 self.emit("", depth)
159 self.emit(s, depth)
160 self.emit("", depth)
165 self.emit(s, depth)
166 self.emit("", depth)
183 self.emit("""\
188 self.emit("", depth)
189 …self.emit("asdl_%(name)s_seq *_Py_asdl_%(name)s_seq_new(Py_ssize_t size, PyArena *arena);" % local…
[all …]
/third_party/mesa3d/src/intel/compiler/
Dgfx6_gs_visitor.cpp70 emit(MOV(dst_reg(this->vertex_output_offset), brw_imm_ud(0u))); in emit_prolog()
75 vec4_instruction *inst = emit(MOV(dst_reg(MRF, 1), in emit_prolog()
92 emit(MOV(dst_reg(this->first_vertex), brw_imm_ud(URB_WRITE_PRIM_START))); in emit_prolog()
98 emit(MOV(dst_reg(this->prim_count), brw_imm_ud(0u))); in emit_prolog()
109 emit(MOV(dst_reg(this->max_svbi), in emit_prolog()
134 emit(GS_OPCODE_SET_PRIMITIVE_ID, dst_reg(this->primitive_id)); in emit_prolog()
168 vec4_instruction *inst = emit(MOV(dst, src_reg(tmp))); in gs_emit_vertex()
172 emit(ADD(dst_reg(this->vertex_output_offset), in gs_emit_vertex()
184 emit(MOV(dst, brw_imm_d((_3DPRIM_POINTLIST << URB_WRITE_PRIM_TYPE_SHIFT) | in gs_emit_vertex()
186 emit(ADD(dst_reg(this->prim_count), this->prim_count, brw_imm_ud(1u))); in gs_emit_vertex()
[all …]
Dbrw_vec4_nir.cpp102 vec4_instruction *inst = emit(MOV(dst_null_d(), condition)); in nir_emit_if()
107 emit(IF(BRW_PREDICATE_ALIGN16_REPLICATE_X)); in nir_emit_if()
112 emit(BRW_OPCODE_ELSE); in nir_emit_if()
116 emit(BRW_OPCODE_ENDIF); in nir_emit_if()
122 emit(BRW_OPCODE_DO); in nir_emit_loop()
126 emit(BRW_OPCODE_WHILE); in nir_emit_loop()
363 emit(MOV(reg, setup_imm_df(ibld, instr->value[i].f64))); in nir_emit_load_const()
365 emit(MOV(reg, brw_imm_d(instr->value[i].i32))); in nir_emit_load_const()
412 emit(MOV(dest, src)); in nir_emit_intrinsic()
446 emit(MOV(dst_reg(MRF, param_base, glsl_type::int_type, writemask), lod)); in nir_emit_intrinsic()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_const.c122 fd6_build_tess_consts(struct fd6_emit *emit) in fd6_build_tess_consts() argument
124 struct fd_context *ctx = emit->ctx; in fd6_build_tess_consts()
132 unsigned num_vertices = emit->hs in fd6_build_tess_consts()
133 ? emit->patch_vertices in fd6_build_tess_consts()
134 : emit->gs->gs.vertices_in; in fd6_build_tess_consts()
137 emit->vs->output_size * num_vertices * 4, /* vs primitive stride */ in fd6_build_tess_consts()
138 emit->vs->output_size * 4, /* vs vertex stride */ in fd6_build_tess_consts()
141 emit_stage_tess_consts(constobj, emit->vs, vs_params, ARRAY_SIZE(vs_params)); in fd6_build_tess_consts()
143 if (emit->hs) { in fd6_build_tess_consts()
145 emit->vs->output_size * num_vertices * 4, /* vs primitive stride */ in fd6_build_tess_consts()
[all …]
Dfd6_draw.c122 fixup_draw_state(struct fd_context *ctx, struct fd6_emit *emit) assert_dt in fixup_draw_state() argument
125 (ctx->last.primitive_restart != emit->primitive_restart)) { in fixup_draw_state()
128 ctx->last.primitive_restart = emit->primitive_restart; in fixup_draw_state()
141 struct fd6_emit emit = { in fd6_draw_vbo() local
172 emit.key.hs = ctx->prog.hs; in fd6_draw_vbo()
173 emit.key.ds = ctx->prog.ds; in fd6_draw_vbo()
178 struct shader_info *ds_info = ir3_get_shader_info(emit.key.ds); in fd6_draw_vbo()
179 emit.key.key.tessellation = ir3_tess_mode(ds_info->tess._primitive_mode); in fd6_draw_vbo()
182 struct shader_info *fs_info = ir3_get_shader_info(emit.key.fs); in fd6_draw_vbo()
183 emit.key.key.tcs_store_primid = in fd6_draw_vbo()
[all …]
Dfd6_emit.c481 fd6_emit_combined_textures(struct fd_ringbuffer *ring, struct fd6_emit *emit, in fd6_emit_combined_textures() argument
485 struct fd_context *ctx = emit->ctx; in fd6_emit_combined_textures()
523 fd6_emit_add_group(emit, tex->stateobj, s[type].state_id, in fd6_emit_combined_textures()
544 fd6_emit_take_group(emit, stateobj, s[type].state_id, in fd6_emit_combined_textures()
553 build_vbo_state(struct fd6_emit *emit) assert_dt in build_vbo_state() argument
555 const struct fd_vertex_state *vtx = emit->vtx; in build_vbo_state()
566 emit->ctx->batch->submit, 4 * dwords, FD_RINGBUFFER_STREAMING); in build_vbo_state()
594 compute_ztest_mode(struct fd6_emit *emit, bool lrz_valid) assert_dt in compute_ztest_mode() argument
596 struct fd_context *ctx = emit->ctx; in compute_ztest_mode()
599 const struct ir3_shader_variant *fs = emit->fs; in compute_ztest_mode()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dbuiltin_int64.h16 body.emit(r000E); in udivmod64()
18 body.emit(r000F); in udivmod64()
20 body.emit(r0010); in udivmod64()
22 body.emit(r0011); in udivmod64()
23 body.emit(assign(r0011, ir_constant::zero(mem_ctx, glsl_type::uvec2_type), 0x03)); in udivmod64()
26 body.emit(assign(r0010, add(r0012, body.constant(int(32))), 0x01)); in udivmod64()
39 body.emit(r0017); in udivmod64()
41 body.emit(assign(r0018, expr(ir_unop_find_msb, swizzle_x(r000D)), 0x01)); in udivmod64()
43 body.emit(assign(r0010, r0018, 0x01)); in udivmod64()
45 body.emit(assign(r0017, body.constant(int(31)), 0x01)); in udivmod64()
[all …]
/third_party/node/test/parallel/
Dtest-readline-interface.js185 fi.emit('data', 'a');
197 fi.emit('data', expectedLines.join('\r'));
208 fi.emit('data', '\rfoo\r');
220 fi.emit('data', character);
222 fi.emit('data', '\n');
233 fi.emit('data', '\t');
234 fi.emit('data', '\n');
248 fi.emit('data', `${line}\n`);
266 fi.emit('data', `${expectedLine}\n`);
284 fi.emit('data', `${expectedLines.join('\n')}\n`);
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_draw.c44 struct fd4_emit *emit, unsigned index_offset) assert_dt in draw_impl() argument
46 const struct pipe_draw_info *info = emit->info; in draw_impl()
49 fd4_emit_state(ctx, ring, emit); in draw_impl()
51 if (emit->dirty & (FD_DIRTY_VTXBUF | FD_DIRTY_VTXSTATE)) in draw_impl()
52 fd4_emit_vertex_bufs(ring, emit); in draw_impl()
55 OUT_RING(ring, info->index_size ? emit->draw->index_bias in draw_impl()
56 : emit->draw->start); /* VFD_INDEX_OFFSET */ in draw_impl()
66 fd4_emit_get_vp(emit)->writes_psize && (info->mode == PIPE_PRIM_POINTS)) in draw_impl()
70 emit->binning_pass ? IGNORE_VISIBILITY : USE_VISIBILITY, info, in draw_impl()
71 emit->indirect, emit->draw, index_offset); in draw_impl()
[all …]
Dfd4_emit.h75 fd4_emit_get_vp(struct fd4_emit *emit) in fd4_emit_get_vp() argument
77 if (!emit->vs) { in fd4_emit_get_vp()
78 emit->vs = emit->binning_pass ? emit->prog->bs : emit->prog->vs; in fd4_emit_get_vp()
80 return emit->vs; in fd4_emit_get_vp()
84 fd4_emit_get_fp(struct fd4_emit *emit) in fd4_emit_get_fp() argument
86 if (!emit->fs) { in fd4_emit_get_fp()
87 if (emit->binning_pass) { in fd4_emit_get_fp()
90 emit->fs = &binning_fs; in fd4_emit_get_fp()
92 emit->fs = emit->prog->fs; in fd4_emit_get_fp()
95 return emit->fs; in fd4_emit_get_fp()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_emit.c54 draw_pt_emit_prepare(struct pt_emit *emit, in draw_pt_emit_prepare() argument
58 struct draw_context *draw = emit->draw; in draw_pt_emit_prepare()
71 emit->prim = prim; in draw_pt_emit_prepare()
73 draw->render->set_primitive(draw->render, emit->prim); in draw_pt_emit_prepare()
79 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in draw_pt_emit_prepare()
90 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in draw_pt_emit_prepare()
91 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_pt_emit_prepare()
96 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in draw_pt_emit_prepare()
120 if (!emit->translate || in draw_pt_emit_prepare()
121 translate_key_compare(&emit->translate->key, &hw_key) != 0) { in draw_pt_emit_prepare()
[all …]
Ddraw_vs_variant.c57 struct translate *emit; member
202 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_elts()
208 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_elts()
214 vsvg->emit->run( vsvg->emit, in vsvg_run_elts()
268 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_linear()
274 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_linear()
280 vsvg->emit->run( vsvg->emit, in vsvg_run_linear()
304 struct translate_key fetch, emit; in draw_vs_create_variant_generic() local
338 emit.nr_elements = key->nr_outputs; in draw_vs_create_variant_generic()
339 emit.output_stride = key->output_stride; in draw_vs_create_variant_generic()
[all …]
Ddraw_pt_so_emit.c84 void draw_pt_so_emit_prepare(struct pt_so_emit *emit, boolean use_pre_clip_pos) in draw_pt_so_emit_prepare() argument
86 struct draw_context *draw = emit->draw; in draw_pt_so_emit_prepare()
88 emit->use_pre_clip_pos = use_pre_clip_pos; in draw_pt_so_emit_prepare()
89 emit->has_so = draw_has_so(draw); in draw_pt_so_emit_prepare()
91 emit->pos_idx = draw_current_shader_position_output(draw); in draw_pt_so_emit_prepare()
95 if (emit->has_so) { in draw_pt_so_emit_prepare()
104 emit->has_so = has_valid_buffer; in draw_pt_so_emit_prepare()
107 if (!emit->has_so) in draw_pt_so_emit_prepare()
271 void draw_pt_so_emit( struct pt_so_emit *emit, in draw_pt_so_emit() argument
276 struct draw_context *draw = emit->draw; in draw_pt_so_emit()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_draw.c56 struct fd3_emit *emit, unsigned index_offset) assert_dt in draw_impl() argument
58 const struct pipe_draw_info *info = emit->info; in draw_impl()
61 fd3_emit_state(ctx, ring, emit); in draw_impl()
63 if (emit->dirty & (FD_DIRTY_VTXBUF | FD_DIRTY_VTXSTATE)) in draw_impl()
64 fd3_emit_vertex_bufs(ring, emit); in draw_impl()
72 info->index_size ? emit->draw->index_bias : 0) in draw_impl()
76 info->index_size ? emit->draw->index_bias : 0) in draw_impl()
79 OUT_RING(ring, info->index_size ? emit->draw->index_bias in draw_impl()
80 : emit->draw->start); /* VFD_INDEX_OFFSET */ in draw_impl()
89 fd3_emit_get_vp(emit)->writes_psize && (info->mode == PIPE_PRIM_POINTS)) in draw_impl()
[all …]
Dfd3_emit.h67 fd3_emit_get_vp(struct fd3_emit *emit) in fd3_emit_get_vp() argument
69 if (!emit->vs) { in fd3_emit_get_vp()
70 emit->vs = emit->binning_pass ? emit->prog->bs : emit->prog->vs; in fd3_emit_get_vp()
72 return emit->vs; in fd3_emit_get_vp()
76 fd3_emit_get_fp(struct fd3_emit *emit) in fd3_emit_get_fp() argument
78 if (!emit->fs) { in fd3_emit_get_fp()
79 if (emit->binning_pass) { in fd3_emit_get_fp()
82 emit->fs = &binning_fs; in fd3_emit_get_fp()
84 emit->fs = emit->prog->fs; in fd3_emit_get_fp()
87 return emit->fs; in fd3_emit_get_fp()
[all …]
/third_party/python/Lib/
Dsre_compile.py73 emit = code.append
93 emit(op)
94 emit(av)
96 emit(OP_LOCALE_IGNORE[op])
97 emit(av)
99 emit(op)
100 emit(av)
104 emit(OP_IGNORE[op])
105 emit(lo)
107 emit(OP_UNICODE_IGNORE[op])
[all …]
/third_party/libbpf/src/
Dgen_loader.c96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() function
106 emit(gen, insn1); in emit2()
107 emit(gen, insn2); in emit2()
121 emit(gen, BPF_MOV64_REG(BPF_REG_6, BPF_REG_1)); in bpf_gen__init()
124 emit(gen, BPF_MOV64_REG(BPF_REG_1, BPF_REG_10)); in bpf_gen__init()
125 emit(gen, BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -stack_sz)); in bpf_gen__init()
126 emit(gen, BPF_MOV64_IMM(BPF_REG_2, stack_sz)); in bpf_gen__init()
127 emit(gen, BPF_MOV64_IMM(BPF_REG_3, 0)); in bpf_gen__init()
128 emit(gen, BPF_EMIT_CALL(BPF_FUNC_probe_read_kernel)); in bpf_gen__init()
133 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, in bpf_gen__init()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dr300_fragprog_emit.c59 struct r300_fragment_program_compiler *c = emit->compiler; \
153 static int emit_alu(struct r300_emit_state * emit, struct rc_pair_instruction* inst) in emit_alu() argument
260 emit->node_flags |= R300_RGBA_OUT; in emit_alu()
274 emit->node_flags |= R300_RGBA_OUT; in emit_alu()
278 emit->node_flags |= R300_W_OUT; in emit_alu()
307 static int finish_node(struct r300_emit_state * emit) in finish_node() argument
309 struct r300_fragment_program_compiler * c = emit->compiler; in finish_node()
310 struct r300_fragment_program_code *code = &emit->compiler->code->code.r300; in finish_node()
318 if (code->alu.length == emit->node_first_alu) { in finish_node()
322 if (!emit_alu(emit, &inst)) in finish_node()
[all …]
/third_party/rust/crates/proc-macro-error/tests/ui/
Demit.stderr1 error: emit!(span, from) test
2 --> $DIR/emit.rs:4:7
4 4 | emit!(one, two, three, four, five);
7 error: emit!(span, expr1, expr2) test
8 --> $DIR/emit.rs:4:12
10 4 | emit!(one, two, three, four, five);
13 error: emit!(span, single_expr) test
14 --> $DIR/emit.rs:4:17
16 4 | emit!(one, two, three, four, five);
19 error: Diagnostic::emit() test
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_draw.c44 struct fd5_emit *emit, unsigned index_offset) assert_dt in draw_impl() argument
46 const struct pipe_draw_info *info = emit->info; in draw_impl()
49 fd5_emit_state(ctx, ring, emit); in draw_impl()
51 if (emit->dirty & (FD_DIRTY_VTXBUF | FD_DIRTY_VTXSTATE)) in draw_impl()
52 fd5_emit_vertex_bufs(ring, emit); in draw_impl()
55 OUT_RING(ring, info->index_size ? emit->draw->index_bias in draw_impl()
56 : emit->draw->start); /* VFD_INDEX_OFFSET */ in draw_impl()
64 fd5_emit_render_cntl(ctx, false, emit->binning_pass); in draw_impl()
66 emit->binning_pass ? IGNORE_VISIBILITY : USE_VISIBILITY, info, in draw_impl()
67 emit->indirect, emit->draw, index_offset); in draw_impl()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi_action.c656 if (bld_base->rsq_action.emit) { in rsq_emit()
657 bld_base->rsq_action.emit(&bld_base->rsq_action, bld_base, emit_data); in rsq_emit()
677 if (bld_base->sqrt_action.emit) { in sqrt_emit()
678 bld_base->sqrt_action.emit(&bld_base->sqrt_action, bld_base, emit_data); in sqrt_emit()
1187 bld_base->op_actions[TGSI_OPCODE_ADD].emit = add_emit; in lp_set_default_actions()
1188 bld_base->op_actions[TGSI_OPCODE_ARR].emit = arr_emit; in lp_set_default_actions()
1189 bld_base->op_actions[TGSI_OPCODE_END].emit = end_emit; in lp_set_default_actions()
1190 bld_base->op_actions[TGSI_OPCODE_FRC].emit = frc_emit; in lp_set_default_actions()
1191 bld_base->op_actions[TGSI_OPCODE_LRP].emit = lrp_emit; in lp_set_default_actions()
1192 bld_base->op_actions[TGSI_OPCODE_MAD].emit = mad_emit; in lp_set_default_actions()
[all …]

12345678910>>...60