Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_ureg.h49 struct ureg_src struct
174 struct ureg_src
186 struct ureg_src
196 static inline struct ureg_src
211 static inline struct ureg_src
224 struct ureg_src
228 struct ureg_src
237 struct ureg_src
244 struct ureg_src
280 struct ureg_src
[all …]
Dtgsi_ureg.c161 struct ureg_src sampler[PIPE_MAX_SAMPLERS];
286 struct ureg_src
339 struct ureg_src
356 struct ureg_src
368 struct ureg_src
384 struct ureg_src
398 struct ureg_src
550 struct ureg_src
605 struct ureg_src src = ureg_src_register(TGSI_FILE_CONSTANT, index); in ureg_DECL_constant()
722 struct ureg_src ureg_DECL_sampler( struct ureg_program *ureg, in ureg_DECL_sampler()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_simple_shaders.c91 struct ureg_src src; in util_make_vertex_passthrough_shader_with_so()
104 struct ureg_src instance_id = in util_make_vertex_passthrough_shader_with_so()
204 struct ureg_src coord, struct ureg_src sampler, in ureg_load_tex()
214 ureg_TXF_LZ(ureg, out, tex_target, ureg_src(temp), sampler); in ureg_load_tex()
216 ureg_TXF(ureg, out, tex_target, ureg_src(temp), sampler); in ureg_load_tex()
240 struct ureg_src sampler; in util_make_fragment_tex_shader_xrbias()
241 struct ureg_src coord; in util_make_fragment_tex_shader_xrbias()
244 struct ureg_src imm; in util_make_fragment_tex_shader_xrbias()
262 ureg_src(temp), in util_make_fragment_tex_shader_xrbias()
265 ureg_MOV(ureg, out, ureg_src(temp)); in util_make_fragment_tex_shader_xrbias()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_bicubic_filter.c54 struct ureg_src i_vpos; in create_vert_shader()
74 create_frag_shader_cubic_interpolater(struct ureg_program *shader, struct ureg_src tex_a, in create_frag_shader_cubic_interpolater()
75 struct ureg_src tex_b, struct ureg_src tex_c, in create_frag_shader_cubic_interpolater()
76 struct ureg_src tex_d, struct ureg_src t, in create_frag_shader_cubic_interpolater()
97 ureg_src(temp[1])); in create_frag_shader_cubic_interpolater()
101 ureg_src(temp[2])); in create_frag_shader_cubic_interpolater()
103 ureg_src(temp[2])); in create_frag_shader_cubic_interpolater()
105 ureg_src(temp[2])); in create_frag_shader_cubic_interpolater()
109 ureg_src(temp[3])); in create_frag_shader_cubic_interpolater()
111 ureg_src(temp[3])); in create_frag_shader_cubic_interpolater()
[all …]
Dvl_deint_filter.c67 struct ureg_src i_vpos; in create_vert_shader()
90 struct ureg_src i_vtex; in create_copy_frag_shader()
91 struct ureg_src sampler; in create_copy_frag_shader()
114 ureg_TEX(shader, o_fragment, TGSI_TEXTURE_2D_ARRAY, ureg_src(t_tex), sampler); in create_copy_frag_shader()
127 struct ureg_src i_vtex; in create_deint_frag_shader()
128 struct ureg_src sampler_cur; in create_deint_frag_shader()
129 struct ureg_src sampler_prevprev; in create_deint_frag_shader()
130 struct ureg_src sampler_prev; in create_deint_frag_shader()
131 struct ureg_src sampler_next; in create_deint_frag_shader()
166 ureg_ADD(shader, t_comp_top, ureg_src(t_tex), in create_deint_frag_shader()
[all …]
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_compositor_gfx.c58 struct ureg_src vpos, vtex, color; in create_vert_shader()
107 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, 0.25f)); in create_vert_shader()
109 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), ureg_imm1f(shader, 0.25f)); in create_vert_shader()
111 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)); in create_vert_shader()
115 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, -0.25f)); in create_vert_shader()
117 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), ureg_imm1f(shader, -0.25f)); in create_vert_shader()
119 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y)); in create_vert_shader()
129 struct ureg_src i_tc[2]; in create_frag_shader_weave()
130 struct ureg_src sampler[3]; in create_frag_shader_weave()
160 ureg_ROUND(shader, ureg_writemask(t_tc[i], TGSI_WRITEMASK_YZ), ureg_src(t_tc[i])); in create_frag_shader_weave()
[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()
99 ureg_FRC(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(tmp)); in calc_line()
100 ureg_SGE(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(tmp), ureg_imm1f(shader, 0.5f)); in calc_line()
109 struct ureg_src mv_scale; in create_ref_vert_shader()
110 struct ureg_src vmv[2]; in create_ref_vert_shader()
148 … 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()
136 struct ureg_src src = is_vec_zero(offsets[i]) ? i_vtex : ureg_src(t_array[i]); in create_frag_shader()
144 ureg_MOV(shader, tmp, ureg_src(t_array[j])); 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()
146 ureg_MIN(shader, t_array[j - 1], ureg_src(tmp), ureg_src(t_array[j - 1])); in create_frag_shader()
150 ureg_MAX(shader, t_array[j], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader()
152 ureg_MIN(shader, t_array[j - 1], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader()
154 ureg_MOV(shader, o_fragment, ureg_src(t_array[median])); in create_frag_shader()
Dvl_zscan.c123 struct ureg_src scale; in create_vert_shader()
124 struct ureg_src vrect, vpos, block_num; in create_vert_shader()
164 ureg_MUL(shader, ureg_writemask(o_vpos, TGSI_WRITEMASK_XY), ureg_src(tmp), scale); in create_vert_shader()
170 …ureg_FRC(shader, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)… in create_vert_shader()
171 ureg_FLR(shader, ureg_writemask(tmp, TGSI_WRITEMASK_W), ureg_src(tmp)); in create_vert_shader()
174 …ureg_ADD(shader, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), in create_vert_shader()
179 ureg_imm1f(shader, 1.0f / zscan->blocks_per_line), ureg_src(tmp)); in create_vert_shader()
182 ureg_MUL(shader, ureg_writemask(o_vtex[i], TGSI_WRITEMASK_W), ureg_src(tmp), in create_vert_shader()
198 struct ureg_src *vtex; in create_frag_shader()
200 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()
116 ureg_TEX(shader, tmp, TGSI_TEXTURE_2D, ureg_src(tmp), sampler); in create_frag_shader()
120 ureg_MAD(shader, t_sum, ureg_src(tmp), ureg_imm1f(shader, matrix_values[i]), in create_frag_shader()
121 ureg_src(t_sum)); in create_frag_shader()
124 ureg_MOV(shader, o_fragment, ureg_src(t_sum)); in create_frag_shader()
/external/mesa3d/src/gallium/frontends/xa/
Dxa_tgsi.c109 struct ureg_src src, in src_in_mask()
110 struct ureg_src mask, in src_in_mask()
127 static struct ureg_src
129 struct ureg_src coords, in vs_normalize_coords()
130 struct ureg_src const0, struct ureg_src const1) in vs_normalize_coords()
133 struct ureg_src ret; in vs_normalize_coords()
136 ret = ureg_src(tmp); in vs_normalize_coords()
145 struct ureg_src src; in create_vs()
147 struct ureg_src const0, const1; in create_vs()
196 struct ureg_src y_sampler, u_sampler, v_sampler; in create_yuv_shader()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shaderlib_tgsi.c72 struct ureg_src instance_id = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_INSTANCEID, 0); in si_get_blitter_vs()
91 struct ureg_src outer, inner; in si_create_fixed_func_tcs()
141 struct ureg_src value; in si_create_dma_compute_shader()
147 struct ureg_src tid = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_THREAD_ID, 0); in si_create_dma_compute_shader()
148 struct ureg_src blk = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_BLOCK_ID, 0); in si_create_dma_compute_shader()
152 struct ureg_src srcbuf; in si_create_dma_compute_shader()
153 struct ureg_src *values = NULL; in si_create_dma_compute_shader()
157 values = malloc(num_mem_ops * sizeof(struct ureg_src)); in si_create_dma_compute_shader()
166 ureg_UMUL(ureg, store_addr, ureg_src(store_addr), ureg_imm1u(ureg, 4 * inst_dwords[0])); in si_create_dma_compute_shader()
167 ureg_MOV(ureg, load_addr, ureg_src(store_addr)); in si_create_dma_compute_shader()
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dnine_ff.c180 #define _X(r) ureg_scalar(ureg_src(r), TGSI_SWIZZLE_X)
181 #define _Y(r) ureg_scalar(ureg_src(r), TGSI_SWIZZLE_Y)
182 #define _Z(r) ureg_scalar(ureg_src(r), TGSI_SWIZZLE_Z)
183 #define _W(r) ureg_scalar(ureg_src(r), TGSI_SWIZZLE_W)
283 struct ureg_src aVtx;
284 struct ureg_src aNrm;
285 struct ureg_src aCol[2];
286 struct ureg_src aTex[8];
287 struct ureg_src aPsz;
288 struct ureg_src aInd;
[all …]
Dnine_shader.c248 assert_replicate_swizzle(const struct ureg_src *reg) in assert_replicate_swizzle()
430 struct ureg_src reg;
472 struct ureg_src v[PIPE_MAX_SHADER_INPUTS];
473 struct ureg_src v_consecutive; /* copy in temp array of ps inputs for rel addressing */
474 struct ureg_src vPos;
475 struct ureg_src vFace;
476 struct ureg_src s;
486 struct ureg_src vC[2]; /* PS color in */
487 struct ureg_src vT[8]; /* PS texcoord in */
558 static struct ureg_src nine_float_constant_src(struct shader_translator *tx, int idx) in nine_float_constant_src()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atifs_to_tgsi.c43 struct ureg_src *constants;
45 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS];
46 struct ureg_src samplers[PIPE_MAX_SAMPLERS];
87 static struct ureg_src
89 struct ureg_src src, GLuint swizzle) in apply_swizzle()
101 struct ureg_src imm[3]; in apply_swizzle()
117 imm[0] = ureg_src(tmp[0]); in apply_swizzle()
118 imm[1] = ureg_src(tmp[1]); in apply_swizzle()
121 return ureg_src(tmp[0]); in apply_swizzle()
125 static struct ureg_src
[all …]
Dst_mesa_to_tgsi.c62 struct ureg_src *constants;
64 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS];
66 struct ureg_src samplers[PIPE_MAX_SAMPLERS];
67 struct ureg_src systemValues[SYSTEM_VALUE_MAX];
120 static struct ureg_src
134 return ureg_src(t->temps[index]); in src_register()
156 return ureg_src(t->outputs[t->outputMapping[index]]); in src_register()
163 return ureg_src(t->address[index]); in src_register()
284 dst = ureg_dst_indirect(dst, ureg_src(t->address[0])); in translate_dst()
293 static struct ureg_src
[all …]
Dst_glsl_to_tgsi.cpp5786 struct ureg_src *constants;
5788 struct ureg_src *immediates;
5791 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS];
5793 struct ureg_src samplers[PIPE_MAX_SAMPLERS];
5794 struct ureg_src buffers[PIPE_MAX_SHADER_BUFFERS];
5795 struct ureg_src images[PIPE_MAX_SHADER_IMAGES];
5796 struct ureg_src systemValues[SYSTEM_VALUE_MAX];
5797 struct ureg_src hw_atomics[PIPE_MAX_HW_ATOMIC_BUFFERS];
5798 struct ureg_src shared_memory;
5816 static struct ureg_src
[all …]
Dst_pbo.c346 struct ureg_src in_pos; in st_pbo_create_gs()
347 struct ureg_src imm; in st_pbo_create_gs()
366 struct ureg_src in_pos_vertex = ureg_src_dimension(in_pos, i); in st_pbo_create_gs()
/external/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c52 struct ureg_src if_cond;
65 struct ureg_src *input_index_map;
68 struct ureg_src images[PIPE_MAX_SHADER_IMAGES];
79 static struct ureg_src
182 c->input_index_map = ralloc_array(c, struct ureg_src, num_inputs); in ntt_setup_inputs()
191 struct ureg_src decl; in ntt_setup_inputs()
237 decl = ureg_src(temp); in ntt_setup_inputs()
310 static struct ureg_src
331 static struct ureg_src
332 ntt_reladdr(struct ntt_compile *c, struct ureg_src addr) in ntt_reladdr()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_program.c132 struct ureg_src in0 = ureg_DECL_vs_input(ureg, 0); in fd_prog_blit_vs()
133 struct ureg_src in1 = ureg_DECL_vs_input(ureg, 1); in fd_prog_blit_vs()
150 struct ureg_src tc; in fd_prog_blit_fs()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_surface.c885 struct ureg_src tc; in nv50_blitter_make_fp()
934 ureg_scalar(ureg_src(data), TGSI_SWIZZLE_X)); in nv50_blitter_make_fp()
945 ureg_UMIN(ureg, data, ureg_src(data), ureg_imm1u(ureg, 0x7fffffff)); in nv50_blitter_make_fp()
948 struct ureg_src mask; in nv50_blitter_make_fp()
949 struct ureg_src scale; in nv50_blitter_make_fp()
955 struct ureg_src zsrc3 = ureg_src(data); in nv50_blitter_make_fp()
956 struct ureg_src zsrc = ureg_scalar(zsrc3, TGSI_SWIZZLE_X); in nv50_blitter_make_fp()
957 struct ureg_src ssrc = ureg_scalar(zsrc3, TGSI_SWIZZLE_Y); in nv50_blitter_make_fp()
958 struct ureg_src zshuf; in nv50_blitter_make_fp()
970 zshuf = ureg_src(data); in nv50_blitter_make_fp()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vs.c53 struct ureg_src src; in get_dummy_vertex_shader()
276 struct ureg_src src[PIPE_MAX_SHADER_INPUTS]; in compile_passthrough_vs()
Dsvga_state_fs.c63 struct ureg_src src; in get_dummy_fragment_shader()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs.c186 struct ureg_src imm; in r300_dummy_vertex_shader()

12