/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xa/ |
D | xa_tgsi.c | 110 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/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xorg/ |
D | xorg_exa_tgsi.c | 84 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/state_trackers/xa/ |
D | xa_tgsi.c | 110 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/ |
D | xorg_exa_tgsi.c | 84 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/ |
D | tgsi_ureg.c | 210 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 …]
|
D | tgsi_ureg.h | 109 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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.c | 210 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 …]
|
D | tgsi_ureg.h | 109 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/ |
D | u_simple_shaders.c | 76 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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_simple_shaders.c | 76 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/ |
D | asm_fill.h | 32 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 …]
|
D | shaders_cache.c | 130 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 …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
D | asm_fill.h | 32 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 …]
|
D | shaders_cache.c | 130 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 …]
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d1x/ |
D | sm4_to_tgsi.cpp | 78 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/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/gd3d1x/ |
D | sm4_to_tgsi.cpp | 78 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/ |
D | ffvertex_prog.c | 295 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/chromium_org/third_party/mesa/src/src/mesa/main/ |
D | ffvertex_prog.c | 295 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/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_mesa_to_tgsi.c | 67 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 …]
|
D | st_program.c | 305 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 …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_mesa_to_tgsi.c | 67 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 …]
|
D | st_program.c | 305 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 …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_vs.c | 78 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()
|
D | svga_state_fs.c | 80 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/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
D | svga_state_vs.c | 78 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()
|