/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.h | 49 struct ureg_src struct 175 struct ureg_src 186 struct ureg_src 195 static inline struct ureg_src 208 struct ureg_src 212 struct ureg_src 221 struct ureg_src 228 struct ureg_src 264 struct ureg_src 269 struct ureg_src [all …]
|
D | tgsi_ureg.c | 161 struct ureg_src sampler[PIPE_MAX_SAMPLERS]; 288 struct ureg_src 340 struct ureg_src 356 struct ureg_src 368 struct ureg_src 384 struct ureg_src 398 struct ureg_src 552 struct ureg_src 607 struct ureg_src src = ureg_src_register(TGSI_FILE_CONSTANT, index); in ureg_DECL_constant() 724 struct ureg_src ureg_DECL_sampler( struct ureg_program *ureg, in ureg_DECL_sampler() [all …]
|
/third_party/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() 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 …]
|
/third_party/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_compositor_gfx.c | 58 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 …]
|
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_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()
|
D | vl_mpeg12_decoder.c | 1082 ureg_MOV(shader, ureg_writemask(o_vtex, TGSI_WRITEMASK_XY), ureg_src(tex)); in mc_vert_shader_callback() 1093 struct ureg_src src, sampler; in mc_frag_shader_callback()
|
/third_party/mesa3d/src/gallium/frontends/xa/ |
D | xa_tgsi.c | 109 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 …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shaderlib_tgsi.c | 72 struct ureg_src instance_id = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_INSTANCEID, 0); in si_get_blitter_vs() 116 struct ureg_src value; in si_create_dma_compute_shader() 122 struct ureg_src tid = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_THREAD_ID, 0); in si_create_dma_compute_shader() 123 struct ureg_src blk = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_BLOCK_ID, 0); in si_create_dma_compute_shader() 127 struct ureg_src srcbuf; in si_create_dma_compute_shader() 128 struct ureg_src *values = NULL; in si_create_dma_compute_shader() 132 values = malloc(num_mem_ops * sizeof(struct ureg_src)); in si_create_dma_compute_shader() 141 ureg_UMUL(ureg, store_addr, ureg_src(store_addr), ureg_imm1u(ureg, 4 * inst_dwords[0])); in si_create_dma_compute_shader() 142 ureg_MOV(ureg, load_addr, ureg_src(store_addr)); in si_create_dma_compute_shader() 152 ureg_UADD(ureg, load_addr, ureg_src(load_addr), in si_create_dma_compute_shader() [all …]
|
/third_party/mesa3d/src/gallium/frontends/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 | 248 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 …]
|
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
D | ShaderTGSI.c | 211 struct ureg_src sv[SHADER_MAX_RESOURCES]; 212 struct ureg_src samplers[SHADER_MAX_SAMPLERS]; 213 struct ureg_src imms; 214 struct ureg_src prim_id; 224 struct ureg_src reg; 400 static struct ureg_src 401 swizzle_reg(struct ureg_src src, uint writemask, in swizzle_reg() 452 struct ureg_src dcl_reg, in dcl_base_input() 468 sx->inputs[index].reg = ureg_src(temp); in dcl_base_input() 491 struct ureg_src reg; in dcl_vs_input() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_to_tgsi.c | 44 struct ureg_src src[4]; 83 struct ureg_src if_cond; 87 struct ureg_src *ssa_temp; 108 struct ureg_src *input_index_map; 113 struct ureg_src images[PIPE_MAX_SHADER_IMAGES]; 135 struct ureg_src src0, struct ureg_src src1, in ntt_insn() 136 struct ureg_src src2, struct ureg_src src3) in ntt_insn() 156 struct ureg_src src0) \ 172 struct ureg_src src0) \ 180 struct ureg_src src0, \ [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_program.c | 151 struct ureg_src in0 = ureg_DECL_vs_input(ureg, 0); in fd_prog_blit_vs() 152 struct ureg_src in1 = ureg_DECL_vs_input(ureg, 1); in fd_prog_blit_vs() 169 struct ureg_src tc; in fd_prog_blit_fs()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_surface.c | 905 struct ureg_src tc; in nv50_blitter_make_fp() 954 ureg_scalar(ureg_src(data), TGSI_SWIZZLE_X)); in nv50_blitter_make_fp() 965 ureg_UMIN(ureg, data, ureg_src(data), ureg_imm1u(ureg, 0x7fffffff)); in nv50_blitter_make_fp() 968 struct ureg_src mask; in nv50_blitter_make_fp() 969 struct ureg_src scale; in nv50_blitter_make_fp() 975 struct ureg_src zsrc3 = ureg_src(data); in nv50_blitter_make_fp() 976 struct ureg_src zsrc = ureg_scalar(zsrc3, TGSI_SWIZZLE_X); in nv50_blitter_make_fp() 977 struct ureg_src ssrc = ureg_scalar(zsrc3, TGSI_SWIZZLE_Y); in nv50_blitter_make_fp() 978 struct ureg_src zshuf; in nv50_blitter_make_fp() 990 zshuf = ureg_src(data); in nv50_blitter_make_fp() [all …]
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_vs.c | 53 struct ureg_src src; in get_dummy_vertex_shader() 214 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()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_pbo.c | 340 struct ureg_src in_pos; in st_pbo_create_gs() 341 struct ureg_src imm; in st_pbo_create_gs() 360 struct ureg_src in_pos_vertex = ureg_src_dimension(in_pos, i); in st_pbo_create_gs()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_fs.c | 217 struct ureg_src imm; in r300_dummy_fragment_shader()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_surface.c | 845 struct ureg_src ipos, itex; in nvc0_blitter_make_vp()
|