Home
last modified time | relevance | path

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

12345678910>>...49

/external/mesa3d/src/gallium/drivers/svga/
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, Elements(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_insn.c37 static boolean emit_vs_postamble( struct svga_shader_emitter *emit );
38 static boolean emit_ps_postamble( struct svga_shader_emitter *emit );
86 translate_dst_register( struct svga_shader_emitter *emit, in translate_dst_register() argument
98 dest = emit->output_map[reg->Register.Index]; in translate_dst_register()
146 svga_arl_needs_adjustment( const struct svga_shader_emitter *emit ) in svga_arl_needs_adjustment() argument
150 for (i = 0; i < emit->num_arl_consts; ++i) { in svga_arl_needs_adjustment()
151 if (emit->arl_consts[i].arl_num == emit->current_arl) in svga_arl_needs_adjustment()
158 svga_arl_adjustment( const struct svga_shader_emitter *emit ) in svga_arl_adjustment() argument
162 for (i = 0; i < emit->num_arl_consts; ++i) { in svga_arl_adjustment()
163 if (emit->arl_consts[i].arl_num == emit->current_arl) in svga_arl_adjustment()
[all …]
Dsvga_tgsi.c53 static void svga_destroy_shader_emitter( struct svga_shader_emitter *emit )
55 if (emit->buf != err_buf)
56 FREE(emit->buf);
61 static boolean svga_shader_expand( struct svga_shader_emitter *emit ) in svga_shader_expand() argument
64 unsigned newsize = emit->size * 2; in svga_shader_expand()
66 if(emit->buf != err_buf) in svga_shader_expand()
67 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand()
72 emit->ptr = err_buf; in svga_shader_expand()
73 emit->buf = err_buf; in svga_shader_expand()
74 emit->size = sizeof(err_buf); in svga_shader_expand()
[all …]
Dsvga_tgsi_emit.h132 boolean svga_shader_emit_dword( struct svga_shader_emitter *emit,
135 boolean svga_shader_emit_dwords( struct svga_shader_emitter *emit,
139 boolean svga_shader_emit_opcode( struct svga_shader_emitter *emit,
142 boolean svga_shader_emit_instructions( struct svga_shader_emitter *emit,
145 boolean svga_translate_decl_sm30( struct svga_shader_emitter *emit,
149 static INLINE boolean emit_dst( struct svga_shader_emitter *emit, in emit_dst() argument
154 return svga_shader_emit_dword( emit, dest.value ); in emit_dst()
157 static INLINE boolean emit_src( struct svga_shader_emitter *emit, in emit_src() argument
163 return (svga_shader_emit_dword( emit, src.base.value ) && in emit_src()
164 svga_shader_emit_dword( emit, src.indirect.value )); in emit_src()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
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, Elements(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_insn.c37 static boolean emit_vs_postamble( struct svga_shader_emitter *emit );
38 static boolean emit_ps_postamble( struct svga_shader_emitter *emit );
86 translate_dst_register( struct svga_shader_emitter *emit, in translate_dst_register() argument
98 dest = emit->output_map[reg->Register.Index]; in translate_dst_register()
146 svga_arl_needs_adjustment( const struct svga_shader_emitter *emit ) in svga_arl_needs_adjustment() argument
150 for (i = 0; i < emit->num_arl_consts; ++i) { in svga_arl_needs_adjustment()
151 if (emit->arl_consts[i].arl_num == emit->current_arl) in svga_arl_needs_adjustment()
158 svga_arl_adjustment( const struct svga_shader_emitter *emit ) in svga_arl_adjustment() argument
162 for (i = 0; i < emit->num_arl_consts; ++i) { in svga_arl_adjustment()
163 if (emit->arl_consts[i].arl_num == emit->current_arl) in svga_arl_adjustment()
[all …]
Dsvga_tgsi.c53 static void svga_destroy_shader_emitter( struct svga_shader_emitter *emit )
55 if (emit->buf != err_buf)
56 FREE(emit->buf);
61 static boolean svga_shader_expand( struct svga_shader_emitter *emit ) in svga_shader_expand() argument
64 unsigned newsize = emit->size * 2; in svga_shader_expand()
66 if(emit->buf != err_buf) in svga_shader_expand()
67 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand()
72 emit->ptr = err_buf; in svga_shader_expand()
73 emit->buf = err_buf; in svga_shader_expand()
74 emit->size = sizeof(err_buf); in svga_shader_expand()
[all …]
Dsvga_tgsi_emit.h132 boolean svga_shader_emit_dword( struct svga_shader_emitter *emit,
135 boolean svga_shader_emit_dwords( struct svga_shader_emitter *emit,
139 boolean svga_shader_emit_opcode( struct svga_shader_emitter *emit,
142 boolean svga_shader_emit_instructions( struct svga_shader_emitter *emit,
145 boolean svga_translate_decl_sm30( struct svga_shader_emitter *emit,
149 static INLINE boolean emit_dst( struct svga_shader_emitter *emit, in emit_dst() argument
154 return svga_shader_emit_dword( emit, dest.value ); in emit_dst()
157 static INLINE boolean emit_src( struct svga_shader_emitter *emit, in emit_src() argument
163 return (svga_shader_emit_dword( emit, src.base.value ) && in emit_src()
164 svga_shader_emit_dword( emit, src.indirect.value )); in emit_src()
[all …]
/external/chromium_org/v8/src/x64/
Dassembler-x64.cc418 emit(opcode); in arithmetic_op()
432 emit(opcode ^ 0x02); in arithmetic_op()
436 emit(opcode); in arithmetic_op()
447 emit(0x66); in arithmetic_op_16()
449 emit(opcode ^ 0x02); in arithmetic_op_16()
452 emit(0x66); in arithmetic_op_16()
454 emit(opcode); in arithmetic_op_16()
464 emit(0x66); in arithmetic_op_16()
466 emit(opcode); in arithmetic_op_16()
477 emit(opcode); in arithmetic_op_8()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_driver.h61 nv10_emit_framebuffer(struct gl_context *ctx, int emit);
64 nv10_emit_render_mode(struct gl_context *ctx, int emit);
67 nv10_emit_scissor(struct gl_context *ctx, int emit);
70 nv10_emit_viewport(struct gl_context *ctx, int emit);
73 nv10_emit_zclear(struct gl_context *ctx, int emit);
77 nv10_emit_cull_face(struct gl_context *ctx, int emit);
80 nv10_emit_front_face(struct gl_context *ctx, int emit);
83 nv10_emit_line_mode(struct gl_context *ctx, int emit);
86 nv10_emit_line_stipple(struct gl_context *ctx, int emit);
89 nv10_emit_point_mode(struct gl_context *ctx, int emit);
[all …]
Dnv20_driver.h55 nv20_emit_framebuffer(struct gl_context *ctx, int emit);
58 nv20_emit_viewport(struct gl_context *ctx, int emit);
62 nv20_emit_point_mode(struct gl_context *ctx, int emit);
66 nv20_emit_logic_opcode(struct gl_context *ctx, int emit);
70 nv20_emit_tex_env(struct gl_context *ctx, int emit);
73 nv20_emit_frag(struct gl_context *ctx, int emit);
77 nv20_emit_tex_gen(struct gl_context *ctx, int emit);
80 nv20_emit_tex_mat(struct gl_context *ctx, int emit);
83 nv20_emit_tex_obj(struct gl_context *ctx, int emit);
86 nv20_emit_tex_shader(struct gl_context *ctx, int emit);
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/
Dnv10_driver.h61 nv10_emit_framebuffer(struct gl_context *ctx, int emit);
64 nv10_emit_render_mode(struct gl_context *ctx, int emit);
67 nv10_emit_scissor(struct gl_context *ctx, int emit);
70 nv10_emit_viewport(struct gl_context *ctx, int emit);
73 nv10_emit_zclear(struct gl_context *ctx, int emit);
77 nv10_emit_cull_face(struct gl_context *ctx, int emit);
80 nv10_emit_front_face(struct gl_context *ctx, int emit);
83 nv10_emit_line_mode(struct gl_context *ctx, int emit);
86 nv10_emit_line_stipple(struct gl_context *ctx, int emit);
89 nv10_emit_point_mode(struct gl_context *ctx, int emit);
[all …]
Dnv20_driver.h55 nv20_emit_framebuffer(struct gl_context *ctx, int emit);
58 nv20_emit_viewport(struct gl_context *ctx, int emit);
62 nv20_emit_point_mode(struct gl_context *ctx, int emit);
66 nv20_emit_logic_opcode(struct gl_context *ctx, int emit);
70 nv20_emit_tex_env(struct gl_context *ctx, int emit);
73 nv20_emit_frag(struct gl_context *ctx, int emit);
77 nv20_emit_tex_gen(struct gl_context *ctx, int emit);
80 nv20_emit_tex_mat(struct gl_context *ctx, int emit);
83 nv20_emit_tex_obj(struct gl_context *ctx, int emit);
86 nv20_emit_tex_shader(struct gl_context *ctx, int emit);
[all …]
/external/chromium_org/tools/traceline/traceline/
Dassembler.h319 void emit(unsigned char b) { in emit() function
333 emit(bytes[i]); in emit_bytes()
362 emit(0x01); emit(0xc0 | (src << 3) | dst); in add()
366 emit(0x83); emit(0xc0 | dst); emit(d & 0xff); in add_imm()
368 emit(0x81); emit(0xc0 | dst); emit_dword(d); in add_imm()
373 emit(0x81); emit(0xe0 | r); emit_dword(mask); in and_()
380 emit(0xff); emit_operand(EDX, dst); in call()
384 emit(0x39); emit(0xc0 | (r2 << 3) | r1); in cmp()
389 emit(0x83); emit(0xf8 | r); emit(d & 0xff); in cmp_imm()
391 emit(0x81); emit(0xf8 | r); emit_dword(d); in cmp_imm()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
Ddraw_pt_emit.c50 draw_pt_emit_prepare(struct pt_emit *emit, in draw_pt_emit_prepare() argument
54 struct draw_context *draw = emit->draw; in draw_pt_emit_prepare()
67 emit->prim = prim; in draw_pt_emit_prepare()
69 draw->render->set_primitive(draw->render, emit->prim); in draw_pt_emit_prepare()
73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in draw_pt_emit_prepare()
84 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in draw_pt_emit_prepare()
85 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_pt_emit_prepare()
90 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in draw_pt_emit_prepare()
109 if (!emit->translate || in draw_pt_emit_prepare()
110 translate_key_compare(&emit->translate->key, &hw_key) != 0) { in draw_pt_emit_prepare()
[all …]
Ddraw_pt_so_emit.c54 void draw_pt_so_emit_prepare(struct pt_so_emit *emit) in draw_pt_so_emit_prepare() argument
56 struct draw_context *draw = emit->draw; in draw_pt_so_emit_prepare()
58 emit->has_so = (draw->vs.vertex_shader->state.stream_output.num_outputs > 0); in draw_pt_so_emit_prepare()
62 if (emit->has_so) { in draw_pt_so_emit_prepare()
71 emit->has_so = has_valid_buffer; in draw_pt_so_emit_prepare()
74 if (!emit->has_so) in draw_pt_so_emit_prepare()
185 void draw_pt_so_emit( struct pt_so_emit *emit, in draw_pt_so_emit() argument
189 struct draw_context *draw = emit->draw; in draw_pt_so_emit()
193 if (!emit->has_so) in draw_pt_so_emit()
196 emit->emitted_vertices = 0; in draw_pt_so_emit()
[all …]
Ddraw_vs_variant.c57 struct translate *emit; member
175 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_elts()
181 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_elts()
187 vsvg->emit->run( vsvg->emit, in vsvg_run_elts()
238 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_linear()
244 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_linear()
250 vsvg->emit->run( vsvg->emit, in vsvg_run_linear()
273 struct translate_key fetch, emit; in draw_vs_create_variant_generic() local
307 emit.nr_elements = key->nr_outputs; in draw_vs_create_variant_generic()
308 emit.output_stride = key->output_stride; in draw_vs_create_variant_generic()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_emit.c50 draw_pt_emit_prepare(struct pt_emit *emit, in draw_pt_emit_prepare() argument
54 struct draw_context *draw = emit->draw; in draw_pt_emit_prepare()
67 emit->prim = prim; in draw_pt_emit_prepare()
69 draw->render->set_primitive(draw->render, emit->prim); in draw_pt_emit_prepare()
73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in draw_pt_emit_prepare()
84 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in draw_pt_emit_prepare()
85 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_pt_emit_prepare()
90 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in draw_pt_emit_prepare()
109 if (!emit->translate || in draw_pt_emit_prepare()
110 translate_key_compare(&emit->translate->key, &hw_key) != 0) { in draw_pt_emit_prepare()
[all …]
Ddraw_pt_so_emit.c54 void draw_pt_so_emit_prepare(struct pt_so_emit *emit) in draw_pt_so_emit_prepare() argument
56 struct draw_context *draw = emit->draw; in draw_pt_so_emit_prepare()
58 emit->has_so = (draw->vs.vertex_shader->state.stream_output.num_outputs > 0); in draw_pt_so_emit_prepare()
62 if (emit->has_so) { in draw_pt_so_emit_prepare()
71 emit->has_so = has_valid_buffer; in draw_pt_so_emit_prepare()
74 if (!emit->has_so) in draw_pt_so_emit_prepare()
185 void draw_pt_so_emit( struct pt_so_emit *emit, in draw_pt_so_emit() argument
189 struct draw_context *draw = emit->draw; in draw_pt_so_emit()
193 if (!emit->has_so) in draw_pt_so_emit()
196 emit->emitted_vertices = 0; in draw_pt_so_emit()
[all …]
Ddraw_vs_variant.c57 struct translate *emit; member
175 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_elts()
181 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_elts()
187 vsvg->emit->run( vsvg->emit, in vsvg_run_elts()
238 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_linear()
244 vsvg->emit->set_buffer( vsvg->emit, in vsvg_run_linear()
250 vsvg->emit->run( vsvg->emit, in vsvg_run_linear()
273 struct translate_key fetch, emit; in draw_vs_create_variant_generic() local
307 emit.nr_elements = key->nr_outputs; in draw_vs_create_variant_generic()
308 emit.output_stride = key->output_stride; in draw_vs_create_variant_generic()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_visitor.cpp205 fs_inst *inst = emit(BRW_OPCODE_MOV, this->result, src); in try_emit_saturate()
248 emit(BRW_OPCODE_MAD, this->result, src0, src1, src2); in try_emit_mad()
297 emit(BRW_OPCODE_XOR, this->result, op[0], fs_reg(1)); in visit()
311 emit(BRW_OPCODE_MOV, this->result, fs_reg(0.0f)); in visit()
313 inst = emit(BRW_OPCODE_CMP, reg_null_f, op[0], fs_reg(0.0f)); in visit()
315 inst = emit(BRW_OPCODE_MOV, this->result, fs_reg(1.0f)); in visit()
318 inst = emit(BRW_OPCODE_CMP, reg_null_f, op[0], fs_reg(0.0f)); in visit()
320 inst = emit(BRW_OPCODE_MOV, this->result, fs_reg(-1.0f)); in visit()
348 emit(FS_OPCODE_DDX, this->result, op[0]); in visit()
351 emit(FS_OPCODE_DDY, this->result, op[0]); in visit()
[all …]
Dbrw_vec4_visitor.cpp47 vec4_visitor::emit(vec4_instruction *inst) in emit() function in brw::vec4_visitor
66 vec4_visitor::emit(enum opcode opcode, dst_reg dst, in emit() function in brw::vec4_visitor
69 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst, in emit()
75 vec4_visitor::emit(enum opcode opcode, dst_reg dst, src_reg src0, src_reg src1) in emit() function in brw::vec4_visitor
77 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst, src0, src1)); in emit()
81 vec4_visitor::emit(enum opcode opcode, dst_reg dst, src_reg src0) in emit() function in brw::vec4_visitor
83 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst, src0)); in emit()
87 vec4_visitor::emit(enum opcode opcode) in emit() function in brw::vec4_visitor
89 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst_reg())); in emit()
215 emit(dot_opcodes[elements - 2], dst, src0, src1); in emit_dp()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
Dbrw_fs_visitor.cpp205 fs_inst *inst = emit(BRW_OPCODE_MOV, this->result, src); in try_emit_saturate()
248 emit(BRW_OPCODE_MAD, this->result, src0, src1, src2); in try_emit_mad()
297 emit(BRW_OPCODE_XOR, this->result, op[0], fs_reg(1)); in visit()
311 emit(BRW_OPCODE_MOV, this->result, fs_reg(0.0f)); in visit()
313 inst = emit(BRW_OPCODE_CMP, reg_null_f, op[0], fs_reg(0.0f)); in visit()
315 inst = emit(BRW_OPCODE_MOV, this->result, fs_reg(1.0f)); in visit()
318 inst = emit(BRW_OPCODE_CMP, reg_null_f, op[0], fs_reg(0.0f)); in visit()
320 inst = emit(BRW_OPCODE_MOV, this->result, fs_reg(-1.0f)); in visit()
348 emit(FS_OPCODE_DDX, this->result, op[0]); in visit()
351 emit(FS_OPCODE_DDY, this->result, op[0]); in visit()
[all …]
Dbrw_vec4_visitor.cpp47 vec4_visitor::emit(vec4_instruction *inst) in emit() function in brw::vec4_visitor
66 vec4_visitor::emit(enum opcode opcode, dst_reg dst, in emit() function in brw::vec4_visitor
69 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst, in emit()
75 vec4_visitor::emit(enum opcode opcode, dst_reg dst, src_reg src0, src_reg src1) in emit() function in brw::vec4_visitor
77 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst, src0, src1)); in emit()
81 vec4_visitor::emit(enum opcode opcode, dst_reg dst, src_reg src0) in emit() function in brw::vec4_visitor
83 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst, src0)); in emit()
87 vec4_visitor::emit(enum opcode opcode) in emit() function in brw::vec4_visitor
89 return emit(new(mem_ctx) vec4_instruction(this, opcode, dst_reg())); in emit()
215 emit(dot_opcodes[elements - 2], dst, src0, src1); in emit_dp()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dr300_fragprog_emit.c57 struct r300_fragment_program_compiler *c = emit->compiler; \
151 static int emit_alu(struct r300_emit_state * emit, struct rc_pair_instruction* inst) in emit_alu() argument
258 emit->node_flags |= R300_RGBA_OUT; in emit_alu()
272 emit->node_flags |= R300_RGBA_OUT; in emit_alu()
276 emit->node_flags |= R300_W_OUT; in emit_alu()
305 static int finish_node(struct r300_emit_state * emit) in finish_node() argument
307 struct r300_fragment_program_compiler * c = emit->compiler; in finish_node()
308 struct r300_fragment_program_code *code = &emit->compiler->code->code.r300; in finish_node()
316 if (code->alu.length == emit->node_first_alu) { in finish_node()
320 if (!emit_alu(emit, &inst)) in finish_node()
[all …]

12345678910>>...49