Home
last modified time | relevance | path

Searched refs:ureg (Results 1 – 24 of 24) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_tgsi.c110 src_in_mask(struct ureg_program *ureg, in src_in_mask() argument
117 ureg_MUL(ureg, dst, src, mask); in src_in_mask()
119 ureg_MUL(ureg, dst, ureg_scalar(src, TGSI_SWIZZLE_W), mask); in src_in_mask()
122 ureg_MUL(ureg, dst, src, ureg_scalar(mask, TGSI_SWIZZLE_X)); in src_in_mask()
124 ureg_MUL(ureg, dst, src, ureg_scalar(mask, TGSI_SWIZZLE_W)); in src_in_mask()
129 vs_normalize_coords(struct ureg_program *ureg, in vs_normalize_coords() argument
133 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in vs_normalize_coords()
136 ureg_MAD(ureg, tmp, coords, const0, const1); in vs_normalize_coords()
138 ureg_release_temporary(ureg, tmp); in vs_normalize_coords()
143 linear_gradient(struct ureg_program *ureg, in linear_gradient() argument
[all …]
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_exa_tgsi.c84 src_in_mask(struct ureg_program *ureg, in src_in_mask() argument
92 ureg_MUL(ureg, dst, src, mask); in src_in_mask()
94 ureg_MUL(ureg, dst, in src_in_mask()
99 ureg_MUL(ureg, dst, src, in src_in_mask()
102 ureg_MUL(ureg, dst, src, in src_in_mask()
108 vs_normalize_coords(struct ureg_program *ureg, struct ureg_src coords, in vs_normalize_coords() argument
111 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in vs_normalize_coords()
113 ureg_MAD(ureg, tmp, coords, const0, const1); in vs_normalize_coords()
115 ureg_release_temporary(ureg, tmp); in vs_normalize_coords()
120 linear_gradient(struct ureg_program *ureg, in linear_gradient() argument
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_ureg.c210 static void set_bad( struct ureg_program *ureg ) in set_bad() argument
212 tokens_error(&ureg->domain[0]); in set_bad()
217 static union tgsi_any_token *get_tokens( struct ureg_program *ureg, in get_tokens() argument
221 struct ureg_tokens *tokens = &ureg->domain[domain]; in get_tokens()
233 static union tgsi_any_token *retrieve_token( struct ureg_program *ureg, in retrieve_token() argument
237 if (ureg->domain[domain].tokens == error_tokens) in retrieve_token()
240 return &ureg->domain[domain].tokens[nr]; in retrieve_token()
270 ureg_property_gs_input_prim(struct ureg_program *ureg, in ureg_property_gs_input_prim() argument
273 ureg->property_gs_input_prim = input_prim; in ureg_property_gs_input_prim()
277 ureg_property_gs_output_prim(struct ureg_program *ureg, in ureg_property_gs_output_prim() argument
[all …]
Dtgsi_ureg.h109 ureg_get_tokens( struct ureg_program *ureg,
147 ureg_property_gs_input_prim(struct ureg_program *ureg,
151 ureg_property_gs_output_prim(struct ureg_program *ureg,
155 ureg_property_gs_max_vertices(struct ureg_program *ureg,
159 ureg_property_fs_coord_origin(struct ureg_program *ureg,
163 ureg_property_fs_coord_pixel_center(struct ureg_program *ureg,
167 ureg_property_fs_color0_writes_all_cbufs(struct ureg_program *ureg,
171 ureg_property_fs_depth_layout(struct ureg_program *ureg,
188 ureg_DECL_fs_input_cyl(struct ureg_program *ureg, in ureg_DECL_fs_input_cyl() argument
194 return ureg_DECL_fs_input_cyl_centroid(ureg, in ureg_DECL_fs_input_cyl()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_simple_shaders.c76 struct ureg_program *ureg; in util_make_vertex_passthrough_shader_with_so() local
79 ureg = ureg_create( TGSI_PROCESSOR_VERTEX ); in util_make_vertex_passthrough_shader_with_so()
80 if (ureg == NULL) in util_make_vertex_passthrough_shader_with_so()
87 src = ureg_DECL_vs_input( ureg, i ); in util_make_vertex_passthrough_shader_with_so()
89 dst = ureg_DECL_output( ureg, in util_make_vertex_passthrough_shader_with_so()
93 ureg_MOV( ureg, dst, src ); in util_make_vertex_passthrough_shader_with_so()
96 ureg_END( ureg ); in util_make_vertex_passthrough_shader_with_so()
98 return ureg_create_shader_with_so_and_destroy( ureg, pipe, so ); in util_make_vertex_passthrough_shader_with_so()
119 struct ureg_program *ureg; in util_make_fragment_tex_shader_writemask() local
127 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT ); in util_make_fragment_tex_shader_writemask()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dasm_fill.h32 typedef void (* ureg_func)( struct ureg_program *ureg,
40 solid_fill( struct ureg_program *ureg, in solid_fill() argument
47 ureg_MOV(ureg, *out, constant[2]); in solid_fill()
55 ureg_MOV(ureg, ureg_writemask(temp[0], TGSI_WRITEMASK_XY), in[0]); \
56 ureg_MOV(ureg, \
59 ureg_DP3(ureg, temp[1], constant[4], ureg_src(temp[0])); \
60 ureg_DP3(ureg, temp[2], constant[5], ureg_src(temp[0])); \
61 ureg_DP3(ureg, temp[3], constant[6], ureg_src(temp[0])); \
62 ureg_RCP(ureg, temp[3], ureg_src(temp[3])); \
63 ureg_MUL(ureg, temp[1], ureg_src(temp[1]), ureg_src(temp[3])); \
[all …]
Dshaders_cache.c130 struct ureg_program *ureg; in combine_shaders() local
166 ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); in combine_shaders()
167 if (!ureg) in combine_shaders()
171 in[0] = ureg_DECL_fs_input(ureg, in combine_shaders()
175 in[1] = ureg_DECL_fs_input(ureg, in combine_shaders()
182 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in combine_shaders()
187 constant[i] = ureg_DECL_constant(ureg, i); in combine_shaders()
195 temp[i] = ureg_DECL_temporary(ureg); in combine_shaders()
202 sampler[i] = ureg_DECL_sampler(ureg, i); in combine_shaders()
208 shaders[current_shader]->func(ureg, in combine_shaders()
[all …]
Drenderer.c195 struct ureg_program *ureg; in create_passthrough_vs() local
200 ureg = ureg_create(TGSI_PROCESSOR_VERTEX); in create_passthrough_vs()
201 if (!ureg) in create_passthrough_vs()
205 src[0] = ureg_DECL_vs_input(ureg, 0); in create_passthrough_vs()
206 dst[0] = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in create_passthrough_vs()
207 tmp = ureg_DECL_temporary(ureg); in create_passthrough_vs()
209 constants[i] = ureg_DECL_constant(ureg, i); in create_passthrough_vs()
212 ureg_DP4(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), src[0], constants[0]); in create_passthrough_vs()
213 ureg_DP4(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), src[0], constants[1]); in create_passthrough_vs()
214 ureg_MOV(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Z), src[0]); in create_passthrough_vs()
[all …]
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d1x/
Dsm4_to_tgsi.cpp78 struct ureg_program* ureg; member
146 …s = ureg_imm4f(ureg, op.imm_values[0].f32, op.imm_values[1].f32, op.imm_values[2].f32, op.imm_valu… in _src()
223 struct ureg_dst t = ureg_DECL_temporary(ureg); in _tmp()
236 #define OP1_(d, g) case SM4_OPCODE_##d: ureg_##g(ureg, _dst(), _src(1)); break
237 #define OP2_(d, g) case SM4_OPCODE_##d: ureg_##g(ureg, _dst(), _src(1), _src(2)); break
238 #define OP3_(d, g) case SM4_OPCODE_##d: ureg_##g(ureg, _dst(), _src(1), _src(2), _src(3)); break
242 #define OP_CF(d, g) case SM4_OPCODE_##d: ureg_##g(ureg, &label); label_to_sm4_insn_num.push_back(st…
248 sm4_to_tgsi_insn_num[insn_num] = ureg_get_instruction_number(ureg); in translate_insns()
302 ureg_EMIT(ureg); in translate_insns()
305 ureg_ENDPRIM(ureg); in translate_insns()
[all …]
/external/mesa3d/src/mesa/main/
Dffvertex_prog.c295 struct ureg { struct
314 struct ureg eye_position; argument
315 struct ureg eye_position_z;
316 struct ureg eye_position_normalized;
317 struct ureg transformed_normal;
318 struct ureg identity;
325 static const struct ureg undef = {
343 static struct ureg make_ureg(GLuint file, GLint idx) in make_ureg()
345 struct ureg reg; in make_ureg()
356 static struct ureg negate( struct ureg reg ) in negate()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_mesa_to_tgsi.c67 struct ureg_program *ureg; member
173 t->temps[index] = ureg_DECL_temporary( t->ureg ); in dst_register()
215 t->temps[index] = ureg_DECL_temporary( t->ureg ); in src_register()
227 return ureg_DECL_constant( t->ureg, 0 ); in src_register()
402 struct ureg_program *ureg = t->ureg; in emit_swz() local
437 ureg_MOV( ureg, dst, translate_src( t, SrcReg )); in emit_swz()
445 imm = ureg_imm3f( ureg, 0, 1, -1 ); in emit_swz()
481 ureg_MAD( ureg, in emit_swz()
488 ureg_MUL( ureg, in emit_swz()
494 ureg_MOV( ureg, in emit_swz()
[all …]
Dst_program.c305 struct ureg_program *ureg; in st_translate_vertex_program() local
317 ureg = ureg_create( TGSI_PROCESSOR_VERTEX ); in st_translate_vertex_program()
318 if (ureg == NULL) { in st_translate_vertex_program()
341 ureg, in st_translate_vertex_program()
361 ureg, in st_translate_vertex_program()
380 vpv->tgsi.tokens = ureg_get_tokens( ureg, NULL ); in st_translate_vertex_program()
384 ureg_destroy( ureg ); in st_translate_vertex_program()
406 ureg_destroy( ureg ); in st_translate_vertex_program()
482 struct ureg_program *ureg; in st_translate_fragment_program() local
677 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT ); in st_translate_fragment_program()
[all …]
Dst_glsl_to_tgsi.cpp3890 struct ureg_program *ureg; member
3986 struct ureg_program *ureg = t->ureg; in emit_immediate() local
3991 return ureg_DECL_immediate(ureg, &values[0].f, size); in emit_immediate()
3993 return ureg_DECL_immediate_int(ureg, &values[0].i, size); in emit_immediate()
3996 return ureg_DECL_immediate_uint(ureg, &values[0].u, size); in emit_immediate()
4017 t->temps[index] = ureg_DECL_local_temporary(t->ureg); in dst_register()
4058 t->temps[index] = ureg_DECL_local_temporary(t->ureg); in src_register()
4070 return ureg_DECL_constant(t->ureg, 0); in src_register()
4208 struct ureg_program *ureg = t->ureg; in compile_tgsi_instruction() local
4236 ureg_label_insn(ureg, in compile_tgsi_instruction()
[all …]
Dst_cb_drawpixels.c300 struct ureg_program *ureg = ureg_create( TGSI_PROCESSOR_VERTEX ); in make_passthrough_vertex_shader() local
302 if (ureg == NULL) in make_passthrough_vertex_shader()
306 ureg_MOV(ureg, in make_passthrough_vertex_shader()
307 ureg_DECL_output( ureg, TGSI_SEMANTIC_POSITION, 0 ), in make_passthrough_vertex_shader()
308 ureg_DECL_vs_input( ureg, 0 )); in make_passthrough_vertex_shader()
311 ureg_MOV(ureg, in make_passthrough_vertex_shader()
312 ureg_DECL_output( ureg, TGSI_SEMANTIC_GENERIC, 0 ), in make_passthrough_vertex_shader()
313 ureg_DECL_vs_input( ureg, 1 )); in make_passthrough_vertex_shader()
317 ureg_MOV(ureg, in make_passthrough_vertex_shader()
318 ureg_DECL_output( ureg, TGSI_SEMANTIC_COLOR, 0 ), in make_passthrough_vertex_shader()
[all …]
Dst_mesa_to_tgsi.h51 struct ureg_program *ureg,
Dst_glsl_to_tgsi.h40 struct ureg_program *ureg,
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vs.c78 struct ureg_program *ureg; in get_dummy_vertex_shader() local
84 ureg = ureg_create(TGSI_PROCESSOR_VERTEX); in get_dummy_vertex_shader()
85 if (!ureg) in get_dummy_vertex_shader()
88 dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in get_dummy_vertex_shader()
89 src = ureg_DECL_immediate(ureg, zero, 4); in get_dummy_vertex_shader()
90 ureg_MOV(ureg, dst, src); in get_dummy_vertex_shader()
91 ureg_END(ureg); in get_dummy_vertex_shader()
93 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_vertex_shader()
95 ureg_destroy(ureg); in get_dummy_vertex_shader()
Dsvga_state_fs.c80 struct ureg_program *ureg; in get_dummy_fragment_shader() local
86 ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); in get_dummy_fragment_shader()
87 if (!ureg) in get_dummy_fragment_shader()
90 dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in get_dummy_fragment_shader()
91 src = ureg_DECL_immediate(ureg, red, 4); in get_dummy_fragment_shader()
92 ureg_MOV(ureg, dst, src); in get_dummy_fragment_shader()
93 ureg_END(ureg); in get_dummy_fragment_shader()
95 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_fragment_shader()
97 ureg_destroy(ureg); in get_dummy_fragment_shader()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs.c183 struct ureg_program *ureg; in r300_dummy_vertex_shader() local
189 ureg = ureg_create(TGSI_PROCESSOR_VERTEX); in r300_dummy_vertex_shader()
190 dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in r300_dummy_vertex_shader()
191 imm = ureg_imm4f(ureg, 0, 0, 0, 1); in r300_dummy_vertex_shader()
193 ureg_MOV(ureg, dst, imm); in r300_dummy_vertex_shader()
194 ureg_END(ureg); in r300_dummy_vertex_shader()
196 shader->state.tokens = tgsi_dup_tokens(ureg_finalize(ureg)); in r300_dummy_vertex_shader()
197 ureg_destroy(ureg); in r300_dummy_vertex_shader()
Dr300_fs.c231 struct ureg_program *ureg; in r300_dummy_fragment_shader() local
236 ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); in r300_dummy_fragment_shader()
237 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in r300_dummy_fragment_shader()
238 imm = ureg_imm4f(ureg, 0, 0, 0, 1); in r300_dummy_fragment_shader()
240 ureg_MOV(ureg, out, imm); in r300_dummy_fragment_shader()
241 ureg_END(ureg); in r300_dummy_fragment_shader()
243 state.tokens = ureg_finalize(ureg); in r300_dummy_fragment_shader()
248 ureg_destroy(ureg); in r300_dummy_fragment_shader()
/external/mesa3d/src/mesa/drivers/dri/i915/
Di915_debug.h47 extern void i915_print_ureg(const char *msg, unsigned ureg);
Di915_context.h335 extern void i915_print_ureg(const char *msg, GLuint ureg);
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
Dd3d11_context.h246 struct ureg_program *ureg; in init_context() local
247 ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); in init_context()
248 ureg_END(ureg); in init_context()
249 default_shaders[PIPE_SHADER_FRAGMENT] = ureg_create_shader_and_destroy(ureg, pipe); in init_context()
251 ureg = ureg_create(TGSI_PROCESSOR_VERTEX); in init_context()
252 ureg_END(ureg); in init_context()
253 default_shaders[PIPE_SHADER_VERTEX] = ureg_create_shader_and_destroy(ureg, pipe); in init_context()
/external/v8/src/arm64/
Ddisasm-arm64.cc1750 unsigned ureg = reg; // Avoid warnings about signed/unsigned comparisons. in NameOfCPURegister() local
1751 if (ureg >= v8::internal::kNumberOfRegisters) { in NameOfCPURegister()
1754 if (ureg == v8::internal::kZeroRegCode) { in NameOfCPURegister()
1757 v8::internal::SNPrintF(tmp_buffer_, "x%u", ureg); in NameOfCPURegister()