/third_party/mesa3d/src/gallium/frontends/xa/ |
D | xa_tgsi.c | 117 src, ureg_scalar(mask, TGSI_SWIZZLE_X)); in src_in_mask() 119 ureg_MUL(ureg, dst, src, ureg_scalar(mask, TGSI_SWIZZLE_X)); in src_in_mask() 122 ureg_MUL(ureg, dst, src, ureg_scalar(mask, TGSI_SWIZZLE_W)); in src_in_mask() 238 ureg_scalar(ureg_src(y), TGSI_SWIZZLE_X), matrow0, ureg_src(rgb)); in create_yuv_shader() 240 ureg_scalar(ureg_src(u), TGSI_SWIZZLE_X), matrow1, ureg_src(rgb)); in create_yuv_shader() 242 ureg_scalar(ureg_src(v), TGSI_SWIZZLE_X), matrow2, ureg_src(rgb)); in create_yuv_shader() 272 TGSI_SWIZZLE_Y), ureg_scalar(*imm0, in xrender_tex() 276 TGSI_SWIZZLE_X, TGSI_SWIZZLE_Y), ureg_scalar(*imm0, in xrender_tex() 279 ureg_MIN(ureg, tmp0, ureg_scalar(ureg_src(tmp0), TGSI_SWIZZLE_X), in xrender_tex() 280 ureg_scalar(ureg_src(tmp0), TGSI_SWIZZLE_Y)); in xrender_tex() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_mc.c | 199 ureg_negate(ureg_scalar(ureg_src(field), TGSI_SWIZZLE_Y)), in create_ref_frag_shader() 202 ureg_negate(ureg_scalar(ureg_src(field), TGSI_SWIZZLE_Y)), in create_ref_frag_shader() 205 ureg_IF(shader, ureg_scalar(ureg_src(ref), TGSI_SWIZZLE_Z), &label); in create_ref_frag_shader() 211 ureg_src(ref), ureg_scalar(ureg_src(ref), TGSI_SWIZZLE_Z)); in create_ref_frag_shader() 275 ureg_scalar(vpos, TGSI_SWIZZLE_Z), ureg_imm1f(shader, 0.5f)); in create_ycbcr_vert_shader() 279 ureg_IF(shader, ureg_scalar(vpos, TGSI_SWIZZLE_W), &label); in create_ycbcr_vert_shader() 282 ureg_negate(ureg_scalar(vrect, TGSI_SWIZZLE_Y)), in create_ycbcr_vert_shader() 286 ureg_scalar(vpos, TGSI_SWIZZLE_Y), ureg_imm1f(shader, 0.5f)); in create_ycbcr_vert_shader() 291 ureg_negate(ureg_scalar(ureg_src(t_vtex), TGSI_SWIZZLE_Z)), in create_ycbcr_vert_shader() 292 ureg_scalar(ureg_src(t_vtex), TGSI_SWIZZLE_X), in create_ycbcr_vert_shader() [all …]
|
D | vl_compositor_gfx.c | 101 ureg_scalar(vtex, TGSI_SWIZZLE_W), ureg_imm1f(shader, 0.5f)); in create_vert_shader() 103 ureg_scalar(vtex, TGSI_SWIZZLE_W), ureg_imm1f(shader, 0.25f)); in create_vert_shader() 106 ureg_MAD(shader, ureg_writemask(o_vtop, TGSI_WRITEMASK_Y), ureg_scalar(vtex, TGSI_SWIZZLE_Y), in create_vert_shader() 107 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, 0.25f)); in create_vert_shader() 108 ureg_MAD(shader, ureg_writemask(o_vtop, TGSI_WRITEMASK_Z), ureg_scalar(vtex, TGSI_SWIZZLE_Y), 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() 114 ureg_MAD(shader, ureg_writemask(o_vbottom, TGSI_WRITEMASK_Y), ureg_scalar(vtex, TGSI_SWIZZLE_Y), in create_vert_shader() 115 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(shader, -0.25f)); in create_vert_shader() 116 ureg_MAD(shader, ureg_writemask(o_vbottom, TGSI_WRITEMASK_Z), ureg_scalar(vtex, TGSI_SWIZZLE_Y), in create_vert_shader() [all …]
|
D | vl_idct.c | 88 ureg_MOV(shader, ureg_writemask(addr[0], wm_start), ureg_scalar(start, sw_start)); in calc_addr() 89 ureg_MOV(shader, ureg_writemask(addr[0], wm_tc), ureg_scalar(tc, sw_tc)); in calc_addr() 91 …ureg_ADD(shader, ureg_writemask(addr[1], wm_start), ureg_scalar(start, sw_start), ureg_imm1f(shade… in calc_addr() 92 ureg_MOV(shader, ureg_writemask(addr[1], wm_tc), ureg_scalar(tc, sw_tc)); in calc_addr() 136 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), in matrix_mul() 137 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y)); in matrix_mul() 243 ureg_scalar(ureg_src(m[0][0]), TGSI_SWIZZLE_X)); in create_mismatch_frag_shader() 419 ureg_scalar(vrect, TGSI_SWIZZLE_X), in vl_idct_stage2_vert_shader()
|
D | vl_zscan.c | 167 ureg_MUL(shader, ureg_writemask(tmp, TGSI_WRITEMASK_XW), ureg_scalar(block_num, TGSI_SWIZZLE_X), 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() 174 …ureg_ADD(shader, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y), in create_vert_shader() 236 … ureg_MOV(shader, ureg_writemask(tmp[i], TGSI_WRITEMASK_Y), ureg_scalar(vtex[i], TGSI_SWIZZLE_W)); in create_frag_shader()
|
D | vl_bicubic_filter.c | 231 ureg_scalar(ureg_src(t), TGSI_SWIZZLE_X), t_array[16+i]); in create_frag_shader() 235 ureg_scalar(ureg_src(t), TGSI_SWIZZLE_Y), o_fragment); in create_frag_shader()
|
D | vl_deint_filter.c | 195 ureg_scalar(ureg_abs(ureg_src(t_diff)), TGSI_SWIZZLE_Y)); in create_deint_frag_shader() 220 ureg_MOV(shader, o_fragment, ureg_scalar(ureg_src(t_tex), TGSI_SWIZZLE_X)); in create_deint_frag_shader()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_simple_shaders.c | 109 ureg_scalar(instance_id, TGSI_SWIZZLE_X)); in util_make_vertex_passthrough_shader_with_so() 263 ureg_scalar(imm, TGSI_SWIZZLE_X), in util_make_fragment_tex_shader_xrbias() 264 ureg_scalar(imm, TGSI_SWIZZLE_Y)); in util_make_fragment_tex_shader_xrbias() 415 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)); in util_make_fs_blit_zs() 431 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X)); in util_make_fs_blit_zs() 838 ureg_scalar(ureg_src(tmp), 0), in util_make_fs_msaa_resolve_bilinear() 843 ureg_scalar(ureg_src(tmp), 0), in util_make_fs_msaa_resolve_bilinear() 848 ureg_scalar(ureg_src(tmp), 1), in util_make_fs_msaa_resolve_bilinear() 1016 ureg_scalar(ureg_src(stencil), TGSI_SWIZZLE_X)); in util_make_fs_pack_color_zs() 1052 ureg_scalar(ureg_src(depth), TGSI_SWIZZLE_X)); in util_make_fs_pack_color_zs() [all …]
|
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
D | ShaderTGSI.c | 411 return ureg_scalar(src, TGSI_SWIZZLE_X); in swizzle_reg() 619 reg = ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X); in dcl_ps_sgv_input() 648 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_W)); in dcl_ps_siv_input() 702 reg = ureg_scalar(reg, operand->comp); in translate_relative_operand() 1220 ureg_scalar(src, TGSI_SWIZZLE_X)); in expand_unary_to_scalarf() 1225 ureg_scalar(src, TGSI_SWIZZLE_Y)); in expand_unary_to_scalarf() 1230 ureg_scalar(src, TGSI_SWIZZLE_Z)); in expand_unary_to_scalarf() 1235 ureg_scalar(src, TGSI_SWIZZLE_W)); in expand_unary_to_scalarf() 1504 ureg_RCP(ureg, dstregmasked, ureg_scalar(tsrc, dst_swizzle)); in Shader_tgsi_translate() 1507 ureg_MOV(ureg, dstregmasked, ureg_scalar(tsrc, dst_swizzle)); in Shader_tgsi_translate() [all …]
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | nine_shader.c | 793 src = ureg_scalar(src, c); in tx_src_scalar() 865 ureg_RCP(tx->ureg, tmp, ureg_scalar(src, dim-1)); in apply_ps1x_projection() 955 return ureg_scalar(ureg_src(tx->regs.rL[loop_level]), TGSI_SWIZZLE_Y); in tx_get_loopal() 1165 ureg_UCMP(ureg, tmp, ureg_scalar(tx->regs.vFace, TGSI_SWIZZLE_X), in tx_src_param() 1173 tx->regs.vFace = ureg_scalar(tx->regs.vFace, TGSI_SWIZZLE_X); in tx_src_param() 1192 … ureg_RCP(ureg, ureg_writemask(tmp, NINED3DSP_WRITEMASK_3), ureg_scalar(src, TGSI_SWIZZLE_W)); in tx_src_param() 1199 … ureg_RCP(ureg, ureg_writemask(tmp, NINED3DSP_WRITEMASK_2), ureg_scalar(src, TGSI_SWIZZLE_Z)); in tx_src_param() 1754 cnd = ureg_scalar(cnd, TGSI_SWIZZLE_W); in DECL_SPECIAL() 1797 ctrx = ureg_scalar(ureg_src(ctr), TGSI_SWIZZLE_X); in DECL_SPECIAL() 1846 al_counter = ureg_scalar(src_ctr, TGSI_SWIZZLE_Z); in DECL_SPECIAL() [all …]
|
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) 185 #define _XXXX(r) ureg_scalar(r, TGSI_SWIZZLE_X) 186 #define _YYYY(r) ureg_scalar(r, TGSI_SWIZZLE_Y) 187 #define _ZZZZ(r) ureg_scalar(r, TGSI_SWIZZLE_Z) 188 #define _WWWW(r) ureg_scalar(r, TGSI_SWIZZLE_W) 459 …ureg_CMP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_W), ureg_negate(ureg_abs(ureg_scalar(ureg_src(tm… in nine_ff_build_vs() 460 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_W), ureg_imm1f(ureg, 1.0f)); in nine_ff_build_vs() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shaderlib_tgsi.c | 76 ureg_scalar(instance_id, TGSI_SWIZZLE_X)); in si_get_blitter_vs() 534 ureg_MOV(ureg, ureg_writemask(coord, TGSI_WRITEMASK_Z), ureg_scalar(blk, TGSI_SWIZZLE_Z)); in si_create_fmask_expand_cs()
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_to_tgsi.c | 1140 return ureg_scalar(ureg_src(c->addr_reg[addr_index]), 0); in ntt_reladdr() 1310 ureg_scalar(src0, i), in ntt_emit_scalar() 1311 ureg_scalar(src1, i), in ntt_emit_scalar() 2071 ureg_scalar(ntt_get_src(c, instr->src[2]), TGSI_SWIZZLE_X)); in ntt_emit_image_load_store() 2141 ntt_MOV(c, dst, ureg_scalar(ureg_src(opcode_dst), 3)); in ntt_emit_image_load_store() 2418 struct ureg_src cond = ureg_scalar(ntt_get_src(c, instr->src[0]), 0); in ntt_emit_intrinsic() 2423 ntt_KILL_IF(c, ureg_scalar(ureg_negate(ureg_src(temp)), 0)); in ntt_emit_intrinsic() 2677 s.srcs[s.i - 1] = ureg_scalar(s.srcs[s.i - 1], 0); in ntt_emit_texture() 2700 sampler = ureg_scalar(sampler, instr->component); in ntt_emit_texture() 2755 ntt_MOV(c, dst, ureg_scalar(ureg_src(tex_dst), 3)); in ntt_emit_texture() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_pbo.c | 367 ureg_scalar(in_pos_vertex, TGSI_SWIZZLE_Z)); in st_pbo_create_gs() 369 ureg_EMIT(ureg, ureg_scalar(imm, TGSI_SWIZZLE_X)); in st_pbo_create_gs()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_surface.c | 954 ureg_scalar(ureg_src(data), TGSI_SWIZZLE_X)); 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() 1000 ureg_MUL(ureg, outs, ssrc, ureg_scalar(scale, TGSI_SWIZZLE_X)); in nv50_blitter_make_fp() 1004 ureg_MUL(ureg, zdst, zsrc, ureg_scalar(scale, TGSI_SWIZZLE_W)); in nv50_blitter_make_fp()
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.h | 907 ureg_scalar( struct ureg_src reg, int x ) in ureg_scalar() function
|