Home
last modified time | relevance | path

Searched refs:ureg_src (Results 1 – 21 of 21) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/vega/
Dasm_fill.h34 struct ureg_src *in,
35 struct ureg_src *sampler,
37 struct ureg_src *constant);
42 struct ureg_src *in, in solid_fill()
43 struct ureg_src *sampler, in solid_fill()
45 struct ureg_src *constant) in solid_fill()
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])); \
[all …]
Dshaders_cache.c131 struct ureg_src in[2]; in combine_shaders()
132 struct ureg_src *sampler = NULL; in combine_shaders()
133 struct ureg_src *constant = NULL; in combine_shaders()
185 constant = (struct ureg_src *) malloc(sizeof(struct ureg_src) * end_const); in combine_shaders()
200 sampler = (struct ureg_src *) malloc(sizeof(struct ureg_src) * end_sampler); in combine_shaders()
Drenderer.c196 struct ureg_src src[2], constants[3]; in create_passthrough_vs()
216 ureg_MOV(ureg, dst[0], ureg_src(tmp)); in create_passthrough_vs()
267 struct ureg_src imm; in create_scissor_fs()
286 struct ureg_src imm; in create_white_fs()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_tgsi.c112 struct ureg_src src, in src_in_mask()
113 struct ureg_src mask, in src_in_mask()
128 static struct ureg_src
130 struct ureg_src coords, in vs_normalize_coords()
131 struct ureg_src const0, struct ureg_src const1) in vs_normalize_coords()
134 struct ureg_src ret; in vs_normalize_coords()
137 ret = ureg_src(tmp); in vs_normalize_coords()
145 struct ureg_src pos, in linear_gradient()
146 struct ureg_src sampler, in linear_gradient()
147 struct ureg_src coords, in linear_gradient()
[all …]
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_exa_tgsi.c86 struct ureg_src src, in src_in_mask()
87 struct ureg_src mask, in src_in_mask()
107 static struct ureg_src
108 vs_normalize_coords(struct ureg_program *ureg, struct ureg_src coords, in vs_normalize_coords()
109 struct ureg_src const0, struct ureg_src const1) in vs_normalize_coords()
112 struct ureg_src ret; in vs_normalize_coords()
114 ret = ureg_src(tmp); in vs_normalize_coords()
122 struct ureg_src pos, in linear_gradient()
123 struct ureg_src sampler, in linear_gradient()
124 struct ureg_src coords, in linear_gradient()
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_ureg.h45 struct ureg_src struct
179 struct ureg_src
187 static INLINE struct ureg_src
202 static INLINE struct ureg_src
215 struct ureg_src
219 struct ureg_src
225 struct ureg_src
242 struct ureg_src
247 struct ureg_src
252 struct ureg_src
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_idct.c73 struct ureg_src tc, struct ureg_src start, bool right_side, in calc_addr()
97 struct ureg_src saddr[2], bool right_side, bool transposed, in increment_addr()
115 fetch_four(struct ureg_program *shader, struct ureg_dst m[2], struct ureg_src addr[2], in fetch_four()
116 struct ureg_src sampler, bool resource3d) in fetch_four()
133 ureg_DP4(shader, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_src(l[0]), ureg_src(r[0])); in matrix_mul()
134 ureg_DP4(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(l[1]), ureg_src(r[1])); in matrix_mul()
136 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), in matrix_mul()
137 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y)); in matrix_mul()
146 struct ureg_src vpos; in create_mismatch_vert_shader()
147 struct ureg_src scale; in create_mismatch_vert_shader()
[all …]
Dvl_mc.c53 calc_position(struct vl_mc *r, struct ureg_program *shader, struct ureg_src block_scale) in calc_position()
55 struct ureg_src vrect, vpos; in calc_position()
74 ureg_MUL(shader, ureg_writemask(t_vpos, TGSI_WRITEMASK_XY), ureg_src(t_vpos), block_scale); in calc_position()
75 ureg_MOV(shader, ureg_writemask(o_vpos, TGSI_WRITEMASK_XY), ureg_src(t_vpos)); in calc_position()
85 struct ureg_src pos; in calc_line()
95 ureg_FRC(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(tmp)); in calc_line()
96 ureg_SGE(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(tmp), ureg_imm1f(shader, 0.5f)); in calc_line()
105 struct ureg_src mv_scale; in create_ref_vert_shader()
106 struct ureg_src vmv[2]; in create_ref_vert_shader()
144 … ureg_MAD(shader, ureg_writemask(o_vmv[i], TGSI_WRITEMASK_XY), mv_scale, vmv[i], ureg_src(t_vpos)); in create_ref_vert_shader()
[all …]
Dvl_median_filter.c50 struct ureg_src i_vpos; in create_vert_shader()
82 struct ureg_src i_vtex; in create_frag_shader()
83 struct ureg_src sampler; in create_frag_shader()
131 struct ureg_src src = is_vec_zero(offsets[i]) ? i_vtex : ureg_src(t_array[i]); in create_frag_shader()
139 ureg_MOV(shader, tmp, ureg_src(t_array[j])); in create_frag_shader()
140 ureg_MAX(shader, t_array[j], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader()
141 ureg_MIN(shader, t_array[j - 1], ureg_src(tmp), ureg_src(t_array[j - 1])); in create_frag_shader()
145 ureg_MAX(shader, t_array[j], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader()
147 ureg_MIN(shader, t_array[j - 1], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader()
149 ureg_MOV(shader, o_fragment, ureg_src(t_array[median])); in create_frag_shader()
Dvl_compositor.c59 struct ureg_src vpos, vtex, color; in create_vert_shader()
108 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, 0.25f)); in create_vert_shader()
110 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), ureg_imm1f(shader, 0.25f)); in create_vert_shader()
112 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)); in create_vert_shader()
116 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, -0.25f)); in create_vert_shader()
118 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), ureg_imm1f(shader, -0.25f)); in create_vert_shader()
120 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y)); in create_vert_shader()
131 struct ureg_src tc; in create_frag_shader_video_buffer()
132 struct ureg_src csc[3]; in create_frag_shader_video_buffer()
133 struct ureg_src sampler[3]; in create_frag_shader_video_buffer()
[all …]
Dvl_zscan.c96 struct ureg_src scale; in create_vert_shader()
97 struct ureg_src vrect, vpos, block_num; in create_vert_shader()
139 ureg_MUL(shader, ureg_writemask(o_vpos, TGSI_WRITEMASK_XY), ureg_src(tmp), scale); in create_vert_shader()
145 …ureg_FRC(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)… in create_vert_shader()
146 ureg_FLR(shader, ureg_writemask(tmp, TGSI_WRITEMASK_W), ureg_src(tmp)); in create_vert_shader()
149 …ureg_ADD(shader, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), in create_vert_shader()
154 ureg_imm1f(shader, 1.0f / zscan->blocks_per_line), ureg_src(tmp)); in create_vert_shader()
157 ureg_MUL(shader, ureg_writemask(o_vtex[i], TGSI_WRITEMASK_W), ureg_src(tmp), in create_vert_shader()
173 struct ureg_src *vtex; in create_frag_shader()
175 struct ureg_src samp_src, samp_scan, samp_quant; in create_frag_shader()
[all …]
Dvl_matrix_filter.c52 struct ureg_src i_vpos; in create_vert_shader()
82 struct ureg_src i_vtex; in create_frag_shader()
83 struct ureg_src sampler; in create_frag_shader()
122 struct ureg_src src = is_vec_zero(offsets[i]) ? i_vtex : ureg_src(t_array[i]); in create_frag_shader()
131 ureg_MUL(shader, t_sum, ureg_src(t_array[i]), in create_frag_shader()
135 ureg_MAD(shader, t_sum, ureg_src(t_array[i]), in create_frag_shader()
136 ureg_imm1f(shader, matrix_values[i]), ureg_src(t_sum)); in create_frag_shader()
142 ureg_MOV(shader, o_fragment, ureg_src(t_sum)); in create_frag_shader()
Dvl_mpeg12_decoder.c996 ureg_MOV(shader, ureg_writemask(o_vtex, TGSI_WRITEMASK_XY), ureg_src(tex)); in mc_vert_shader_callback()
1007 struct ureg_src src, sampler; in mc_frag_shader_callback()
/external/mesa3d/src/gallium/auxiliary/util/
Du_simple_shaders.c84 struct ureg_src src; in util_make_vertex_passthrough_shader_with_so()
120 struct ureg_src sampler; in util_make_fragment_tex_shader_writemask()
121 struct ureg_src tex; in util_make_fragment_tex_shader_writemask()
142 struct ureg_src imm = ureg_imm4f( ureg, 0, 0, 0, 1 ); in util_make_fragment_tex_shader_writemask()
182 struct ureg_src sampler; in util_make_fragment_tex_shader_writedepth()
183 struct ureg_src tex; in util_make_fragment_tex_shader_writedepth()
185 struct ureg_src imm; in util_make_fragment_tex_shader_writedepth()
228 struct ureg_src depth_sampler, stencil_sampler; in util_make_fragment_tex_shader_writedepthstencil()
229 struct ureg_src tex; in util_make_fragment_tex_shader_writedepthstencil()
231 struct ureg_src imm; in util_make_fragment_tex_shader_writedepthstencil()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_mesa_to_tgsi.c70 struct ureg_src *constants;
72 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS];
74 struct ureg_src samplers[PIPE_MAX_SAMPLERS];
75 struct ureg_src systemValues[SYSTEM_VALUE_MAX];
202 static struct ureg_src
216 return ureg_src(t->temps[index]); in src_register()
237 return ureg_src(t->outputs[t->outputMapping[index]]); /* not needed? */ in src_register()
240 return ureg_src(t->address[index]); in src_register()
329 dst = ureg_dst_indirect( dst, ureg_src(t->address[0]) ); in translate_dst()
338 static struct ureg_src
[all …]
Dst_glsl_to_tgsi.cpp3893 struct ureg_src *constants;
3894 struct ureg_src *immediates;
3896 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS];
3898 struct ureg_src samplers[PIPE_MAX_SAMPLERS];
3899 struct ureg_src systemValues[SYSTEM_VALUE_MAX];
3981 static struct ureg_src
4045 static struct ureg_src
4059 return ureg_src(t->temps[index]); in src_register()
4083 return ureg_src(t->outputs[t->outputMapping[index]]); /* not needed? */ in src_register()
4086 return ureg_src(t->address[index]); in src_register()
[all …]
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d1x/
Dsm4_to_tgsi.cpp81 std::vector<struct ureg_src> inputs;
82 std::vector<struct ureg_src> resources;
83 std::vector<struct ureg_src> samplers;
138 struct ureg_src _src(unsigned i) in _src()
142 struct ureg_src s; in _src()
170 s = ureg_src(_reg(op)); in _src()
325 ureg_RCP(ureg, d, ureg_src(t)); in translate_insns()
332 struct ureg_src v = _src(2); in translate_insns()
478 …ureg_SAMPLE_L(ureg, _dst(), ureg_src(tmp), resources[_idx(SM4_FILE_RESOURCE, 2)], samplers[_idx(SM… in translate_insns()
522 struct ureg_src a = _src(2); in translate_insns()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vs.c80 struct ureg_src src; in get_dummy_vertex_shader()
Dsvga_state_fs.c82 struct ureg_src src; in get_dummy_fragment_shader()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs.c185 struct ureg_src imm; in r300_dummy_vertex_shader()
Dr300_fs.c233 struct ureg_src imm; in r300_dummy_fragment_shader()