/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_tgsi.c | 112 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/virglrenderer/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.h | 45 struct ureg_src struct 163 struct ureg_src 171 static inline struct ureg_src 186 static inline struct ureg_src 199 struct ureg_src 203 struct ureg_src 209 struct ureg_src 226 struct ureg_src 231 struct ureg_src 236 struct ureg_src [all …]
|
D | tgsi_ureg.c | 143 struct ureg_src sampler[PIPE_MAX_SAMPLERS]; 277 struct ureg_src 310 struct ureg_src 321 struct ureg_src 341 struct ureg_src 436 struct ureg_src 595 struct ureg_src ureg_DECL_sampler( struct ureg_program *ureg, in ureg_DECL_sampler() 617 struct ureg_src 626 struct ureg_src reg = ureg_src_register(TGSI_FILE_SAMPLER_VIEW, index); in ureg_DECL_sampler_view() 690 static struct ureg_src [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.h | 46 struct ureg_src struct 169 struct ureg_src 181 struct ureg_src 191 static inline struct ureg_src 206 static inline struct ureg_src 219 struct ureg_src 223 struct ureg_src 232 struct ureg_src 239 struct ureg_src 274 struct ureg_src [all …]
|
D | tgsi_ureg.c | 157 struct ureg_src sampler[PIPE_MAX_SAMPLERS]; 282 struct ureg_src 335 struct ureg_src 351 struct ureg_src 363 struct ureg_src 378 struct ureg_src 390 struct ureg_src 539 struct ureg_src 594 struct ureg_src src = ureg_src_register(TGSI_FILE_CONSTANT, index); in ureg_DECL_constant() 711 struct ureg_src ureg_DECL_sampler( struct ureg_program *ureg, in ureg_DECL_sampler() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_simple_shaders.c | 91 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() 213 ureg_TXF_LZ(ureg, out, tex_target, ureg_src(temp), sampler); in ureg_load_tex() 215 ureg_TXF(ureg, out, tex_target, ureg_src(temp), sampler); in ureg_load_tex() 248 struct ureg_src sampler; in util_make_fragment_tex_shader_writemask() 249 struct ureg_src tex; in util_make_fragment_tex_shader_writemask() 276 struct ureg_src imm = ureg_imm4f( ureg, 0, 0, 0, 1 ); in util_make_fragment_tex_shader_writemask() 293 ureg_IMAX(ureg, temp, ureg_src(temp), ureg_imm1i(ureg, 0)); in util_make_fragment_tex_shader_writemask() 298 ureg_UMIN(ureg, temp, ureg_src(temp), ureg_imm1u(ureg, (1u << 31) - 1)); in util_make_fragment_tex_shader_writemask() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_bicubic_filter.c | 54 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 …]
|
D | vl_deint_filter.c | 67 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 …]
|
D | vl_idct.c | 73 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 …]
|
D | vl_mc.c | 53 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 …]
|
D | vl_median_filter.c | 50 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()
|
D | vl_compositor.c | 61 struct ureg_src vpos, vtex, color; in create_vert_shader() 110 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, 0.25f)); in create_vert_shader() 112 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), ureg_imm1f(shader, 0.25f)); in create_vert_shader() 114 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)); in create_vert_shader() 118 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, -0.25f)); in create_vert_shader() 120 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), ureg_imm1f(shader, -0.25f)); in create_vert_shader() 122 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y)); in create_vert_shader() 132 struct ureg_src i_tc[2]; in create_frag_shader_weave() 133 struct ureg_src sampler[3]; in create_frag_shader_weave() 163 ureg_ROUND(shader, ureg_writemask(t_tc[i], TGSI_WRITEMASK_YZ), ureg_src(t_tc[i])); in create_frag_shader_weave() [all …]
|
D | vl_zscan.c | 123 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 …]
|
D | vl_matrix_filter.c | 52 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/state_trackers/nine/ |
D | nine_ff.c | 180 #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 …]
|
D | nine_shader.c | 253 assert_replicate_swizzle(const struct ureg_src *reg) in assert_replicate_swizzle() 435 struct ureg_src reg; 476 struct ureg_src v[PIPE_MAX_SHADER_INPUTS]; 477 struct ureg_src v_consecutive; /* copy in temp array of ps inputs for rel addressing */ 478 struct ureg_src vPos; 479 struct ureg_src vFace; 480 struct ureg_src s; 487 struct ureg_src vC[2]; /* PS color in */ 488 struct ureg_src vT[8]; /* PS texcoord in */ 555 tx_lconstf(struct shader_translator *tx, struct ureg_src *src, INT index) in tx_lconstf() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_pbo.c | 292 struct ureg_src in_pos; in st_pbo_create_vs() 293 struct ureg_src in_instanceid; in st_pbo_create_vs() 339 struct ureg_src in_pos; in st_pbo_create_gs() 340 struct ureg_src imm; in st_pbo_create_gs() 359 struct ureg_src in_pos_vertex = ureg_src_dimension(in_pos, i); in st_pbo_create_gs() 382 ureg_IMAX(ureg, *temp, ureg_src(*temp), ureg_imm1i(ureg, 0)); in build_conversion() 385 ureg_UMIN(ureg, *temp, ureg_src(*temp), ureg_imm1u(ureg, (1u << 31) - 1)); in build_conversion() 402 struct ureg_src sampler; in create_fs() 403 struct ureg_src pos; in create_fs() 404 struct ureg_src layer; in create_fs() [all …]
|
D | st_atifs_to_tgsi.c | 43 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 …]
|
D | st_mesa_to_tgsi.c | 61 struct ureg_src *constants; 63 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS]; 65 struct ureg_src samplers[PIPE_MAX_SAMPLERS]; 66 struct ureg_src systemValues[SYSTEM_VALUE_MAX]; 116 static struct ureg_src 130 return ureg_src(t->temps[index]); in src_register() 148 return ureg_src(t->outputs[t->outputMapping[index]]); /* not needed? */ in src_register() 151 return ureg_src(t->address[index]); in src_register() 272 dst = ureg_dst_indirect(dst, ureg_src(t->address[0])); in translate_dst() 281 static struct ureg_src [all …]
|
D | st_glsl_to_tgsi.cpp | 5372 struct ureg_src *constants; 5374 struct ureg_src *immediates; 5377 struct ureg_src inputs[PIPE_MAX_SHADER_INPUTS]; 5379 struct ureg_src samplers[PIPE_MAX_SAMPLERS]; 5380 struct ureg_src buffers[PIPE_MAX_SHADER_BUFFERS]; 5381 struct ureg_src images[PIPE_MAX_SHADER_IMAGES]; 5382 struct ureg_src systemValues[SYSTEM_VALUE_MAX]; 5383 struct ureg_src hw_atomics[PIPE_MAX_HW_ATOMIC_BUFFERS]; 5384 struct ureg_src shared_memory; 5486 static struct ureg_src [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_surface.c | 889 struct ureg_src tc; in nv50_blitter_make_fp() 934 ureg_scalar(ureg_src(data), TGSI_SWIZZLE_X)); in nv50_blitter_make_fp() 944 struct ureg_src mask; in nv50_blitter_make_fp() 945 struct ureg_src scale; in nv50_blitter_make_fp() 951 struct ureg_src zsrc3 = ureg_src(data); in nv50_blitter_make_fp() 952 struct ureg_src zsrc = ureg_scalar(zsrc3, TGSI_SWIZZLE_X); in nv50_blitter_make_fp() 953 struct ureg_src ssrc = ureg_scalar(zsrc3, TGSI_SWIZZLE_Y); in nv50_blitter_make_fp() 954 struct ureg_src zshuf; in nv50_blitter_make_fp() 966 zshuf = ureg_src(data); in nv50_blitter_make_fp() 997 ureg_MOV(ureg, ureg_writemask(out, mask), ureg_src(data)); in nv50_blitter_make_fp()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_vs.c | 53 struct ureg_src src; in get_dummy_vertex_shader() 263 struct ureg_src src[PIPE_MAX_SHADER_INPUTS]; in compile_passthrough_vs()
|
D | svga_state_fs.c | 63 struct ureg_src src; in get_dummy_fragment_shader()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_program.c | 99 struct ureg_src tc; in fd_prog_blit()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_vs.c | 186 struct ureg_src imm; in r300_dummy_vertex_shader()
|