/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_simple_shaders.c | 80 struct ureg_program *ureg; in util_make_vertex_passthrough_shader_with_so() local 83 ureg = ureg_create( PIPE_SHADER_VERTEX ); in util_make_vertex_passthrough_shader_with_so() 84 if (!ureg) in util_make_vertex_passthrough_shader_with_so() 88 ureg_property(ureg, TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION, TRUE); in util_make_vertex_passthrough_shader_with_so() 94 src = ureg_DECL_vs_input( ureg, i ); in util_make_vertex_passthrough_shader_with_so() 96 dst = ureg_DECL_output( ureg, in util_make_vertex_passthrough_shader_with_so() 100 ureg_MOV( ureg, dst, src ); in util_make_vertex_passthrough_shader_with_so() 105 ureg_DECL_system_value(ureg, TGSI_SEMANTIC_INSTANCEID, 0); in util_make_vertex_passthrough_shader_with_so() 106 struct ureg_dst layer = ureg_DECL_output(ureg, TGSI_SEMANTIC_LAYER, 0); in util_make_vertex_passthrough_shader_with_so() 108 ureg_MOV(ureg, ureg_writemask(layer, TGSI_WRITEMASK_X), in util_make_vertex_passthrough_shader_with_so() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.c | 247 static void set_bad( struct ureg_program *ureg ) in set_bad() argument 249 tokens_error(&ureg->domain[0]); in set_bad() 254 static union tgsi_any_token *get_tokens( struct ureg_program *ureg, in get_tokens() argument 258 struct ureg_tokens *tokens = &ureg->domain[domain]; in get_tokens() 270 static union tgsi_any_token *retrieve_token( struct ureg_program *ureg, in retrieve_token() argument 274 if (ureg->domain[domain].tokens == error_tokens) in retrieve_token() 277 return &ureg->domain[domain].tokens[nr]; in retrieve_token() 282 ureg_property(struct ureg_program *ureg, unsigned name, unsigned value) in ureg_property() argument 284 assert(name < ARRAY_SIZE(ureg->properties)); in ureg_property() 285 ureg->properties[name] = value; in ureg_property() [all …]
|
D | tgsi_ureg.h | 117 ureg_set_next_shader_processor(struct ureg_program *ureg, unsigned processor); 123 ureg_get_tokens( struct ureg_program *ureg, 130 ureg_get_nr_outputs( const struct ureg_program *ureg ); 140 void ureg_set_precise( struct ureg_program *ureg, bool precise ); 168 ureg_property(struct ureg_program *ureg, unsigned name, unsigned value); 196 ureg_DECL_fs_input(struct ureg_program *ureg, in ureg_DECL_fs_input() argument 201 return ureg_DECL_fs_input_centroid(ureg, in ureg_DECL_fs_input() 258 ureg_DECL_output_array(struct ureg_program *ureg, 300 ureg_DECL_constant2D(struct ureg_program *ureg, 310 ureg_DECL_hw_atomic(struct ureg_program *ureg, [all …]
|
/third_party/mesa3d/src/gallium/frontends/xa/ |
D | xa_tgsi.c | 107 src_in_mask(struct ureg_program *ureg, in src_in_mask() argument 115 ureg_MOV(ureg, dst, src); in src_in_mask() 116 ureg_MUL(ureg, ureg_writemask(dst, TGSI_WRITEMASK_W), 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() 124 ureg_MUL(ureg, dst, src, mask); in src_in_mask() 128 vs_normalize_coords(struct ureg_program *ureg, in vs_normalize_coords() argument 132 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in vs_normalize_coords() 135 ureg_MAD(ureg, tmp, coords, const0, const1); in vs_normalize_coords() 137 ureg_release_temporary(ureg, tmp); in vs_normalize_coords() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shaderlib_tgsi.c | 56 struct ureg_program *ureg = ureg_create(PIPE_SHADER_VERTEX); in si_get_blitter_vs() local 57 if (!ureg) in si_get_blitter_vs() 61 ureg_property(ureg, TGSI_PROPERTY_VS_BLIT_SGPRS_AMD, vs_blit_property); in si_get_blitter_vs() 62 ureg_property(ureg, TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION, true); in si_get_blitter_vs() 65 ureg_MOV(ureg, ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0), ureg_DECL_vs_input(ureg, 0)); in si_get_blitter_vs() 68 ureg_MOV(ureg, ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 0), ureg_DECL_vs_input(ureg, 1)); in si_get_blitter_vs() 72 struct ureg_src instance_id = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_INSTANCEID, 0); in si_get_blitter_vs() 73 struct ureg_dst layer = ureg_DECL_output(ureg, TGSI_SEMANTIC_LAYER, 0); in si_get_blitter_vs() 75 ureg_MOV(ureg, ureg_writemask(layer, TGSI_WRITEMASK_X), in si_get_blitter_vs() 78 ureg_END(ureg); in si_get_blitter_vs() [all …]
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | nine_ff.c | 171 static void nine_ureg_tgsi_dump(struct ureg_program *ureg, boolean override) in nine_ureg_tgsi_dump() argument 174 const struct tgsi_token *toks = ureg_get_tokens(ureg, NULL); in nine_ureg_tgsi_dump() 194 ureg_src_indirect(ureg_DECL_constant(ureg, i), _X(AL)) 197 ureg_DECL_constant(ureg, 19 + (i)) 199 #define _CONST(n) ureg_DECL_constant(ureg, n) 277 struct ureg_program *ureg; member 314 return ureg_DECL_vs_input(vs->ureg, i); in build_vs_add_input() 319 ureg_normalize3(struct ureg_program *ureg, in ureg_normalize3() argument 322 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in ureg_normalize3() 325 ureg_DP3(ureg, tmp_x, src, src); in ureg_normalize3() [all …]
|
D | nine_shader.c | 440 struct ureg_program *ureg; member 714 tx->lconstf[n].reg = ureg_imm4f(tx->ureg, f[0], f[1], f[2], f[3]); in tx_set_lconstf() 740 ureg_imm4i(tx->ureg, i[0], i[1], i[2], i[3]) : in tx_set_lconsti() 741 ureg_imm4f(tx->ureg, i[0], i[1], i[2], i[3]); in tx_set_lconsti() 765 ureg_imm1u(tx->ureg, b ? 0xffffffff : 0) : in tx_set_lconstb() 766 ureg_imm1f(tx->ureg, b ? 1.0f : 0.0f); in tx_set_lconstb() 777 tx->regs.t[tx->num_scratch] = ureg_DECL_local_temporary(tx->ureg); in tx_scratch() 812 tx->regs.r[idx] = ureg_DECL_temporary(tx->ureg); in tx_temp_alloc() 820 tx->regs.address = ureg_DECL_address(tx->ureg); in tx_addr_alloc() 822 tx->regs.a0 = ureg_DECL_temporary(tx->ureg); in tx_addr_alloc() [all …]
|
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
D | ShaderTGSI.c | 203 struct ureg_program *ureg; member 423 struct ureg_program *ureg, in dcl_base_output() argument 450 struct ureg_program *ureg, in dcl_base_input() argument 460 struct ureg_dst temp = ureg_DECL_temporary(sx->ureg); in dcl_base_input() 462 ureg_MOV(ureg, in dcl_base_input() 466 ureg_MOV(ureg, ureg_writemask(temp, writemask), in dcl_base_input() 473 ureg_MOV(ureg, ureg_writemask(temp, writemask), in dcl_base_input() 488 struct ureg_program *ureg, in dcl_vs_input() argument 495 reg = ureg_DECL_vs_input(ureg, dst->base.index[0].imm); in dcl_vs_input() 497 dcl_base_input(sx, ureg, dst, reg, dst->base.index[0].imm, in dcl_vs_input() [all …]
|
D | Shader.cpp | 63 struct ureg_program *ureg; in CreateEmptyShader() local 71 ureg = ureg_create(processor); in CreateEmptyShader() 72 if (!ureg) in CreateEmptyShader() 75 ureg_END(ureg); in CreateEmptyShader() 77 tokens = ureg_get_tokens(ureg, &nr_tokens); in CreateEmptyShader() 81 ureg_destroy(ureg); in CreateEmptyShader()
|
/third_party/mesa3d/src/mesa/main/ |
D | ffvertex_prog.c | 301 struct ureg { struct 321 struct ureg eye_position; argument 322 struct ureg eye_position_z; 323 struct ureg eye_position_normalized; 324 struct ureg transformed_normal; 325 struct ureg identity; 332 static const struct ureg undef = { 350 static struct ureg make_ureg(GLuint file, GLint idx) in make_ureg() 352 struct ureg reg; in make_ureg() 362 static struct ureg negate( struct ureg reg ) in negate() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_program.c | 145 struct ureg_program *ureg; in fd_prog_blit_vs() local 147 ureg = ureg_create(PIPE_SHADER_VERTEX); in fd_prog_blit_vs() 148 if (!ureg) in fd_prog_blit_vs() 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() 154 struct ureg_dst out0 = ureg_DECL_output(ureg, texcoord_semantic(pctx), 0); in fd_prog_blit_vs() 155 struct ureg_dst out1 = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 1); in fd_prog_blit_vs() 157 ureg_MOV(ureg, out0, in0); in fd_prog_blit_vs() 158 ureg_MOV(ureg, out1, in1); in fd_prog_blit_vs() 160 ureg_END(ureg); in fd_prog_blit_vs() [all …]
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_vs.c | 51 struct ureg_program *ureg; in get_dummy_vertex_shader() local 56 ureg = ureg_create(PIPE_SHADER_VERTEX); in get_dummy_vertex_shader() 57 if (!ureg) in get_dummy_vertex_shader() 60 dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in get_dummy_vertex_shader() 61 src = ureg_DECL_immediate(ureg, zero, 4); in get_dummy_vertex_shader() 62 ureg_MOV(ureg, dst, src); in get_dummy_vertex_shader() 63 ureg_END(ureg); in get_dummy_vertex_shader() 65 tokens = ureg_get_tokens(ureg, NULL); in get_dummy_vertex_shader() 67 ureg_destroy(ureg); in get_dummy_vertex_shader() 216 struct ureg_program *ureg; in compile_passthrough_vs() local [all …]
|
D | svga_state_fs.c | 61 struct ureg_program *ureg; in get_dummy_fragment_shader() local 66 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in get_dummy_fragment_shader() 67 if (!ureg) in get_dummy_fragment_shader() 70 dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in get_dummy_fragment_shader() 71 src = ureg_DECL_immediate(ureg, color, 4); in get_dummy_fragment_shader() 72 ureg_MOV(ureg, dst, src); in get_dummy_fragment_shader() 73 ureg_END(ureg); in get_dummy_fragment_shader() 75 tokens = ureg_get_tokens(ureg, NULL); in get_dummy_fragment_shader() 77 ureg_destroy(ureg); in get_dummy_fragment_shader()
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_to_tgsi.c | 73 struct ureg_program *ureg; member 246 return ureg_imm4u(c->ureg, in ntt_64bit_1f() 467 ra_map[index] = ureg_DECL_temporary(c->ureg).Index; in ntt_ra_check() 470 ureg_release_temporary(c->ureg, ureg_dst_register(TGSI_FILE_TEMPORARY, ra_map[index])); in ntt_ra_check() 531 ureg_DECL_temporary(c->ureg); in ntt_allocate_regs_unoptimized() 692 out = ureg_DECL_output(c->ureg, semantic_name, semantic_index); in ntt_output_decl() 716 out = ureg_DECL_output_layout(c->ureg, in ntt_output_decl() 843 decl = ureg_DECL_fs_input_centroid_layout(c->ureg, in ntt_setup_inputs() 856 ntt_SGE(c, temp, decl, ureg_imm1f(c->ureg, 0)); in ntt_setup_inputs() 899 ureg_property(c->ureg, TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS, 1); in ntt_setup_outputs() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_pbo.c | 337 struct ureg_program *ureg; in st_pbo_create_gs() local 344 ureg = ureg_create(PIPE_SHADER_GEOMETRY); in st_pbo_create_gs() 345 if (!ureg) in st_pbo_create_gs() 348 ureg_property(ureg, TGSI_PROPERTY_GS_INPUT_PRIM, PIPE_PRIM_TRIANGLES); in st_pbo_create_gs() 349 ureg_property(ureg, TGSI_PROPERTY_GS_OUTPUT_PRIM, PIPE_PRIM_TRIANGLE_STRIP); in st_pbo_create_gs() 350 ureg_property(ureg, TGSI_PROPERTY_GS_MAX_OUTPUT_VERTICES, 3); in st_pbo_create_gs() 352 out_pos = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in st_pbo_create_gs() 353 out_layer = ureg_DECL_output(ureg, TGSI_SEMANTIC_LAYER, 0); in st_pbo_create_gs() 355 in_pos = ureg_DECL_input(ureg, TGSI_SEMANTIC_POSITION, 0, 0, 1); in st_pbo_create_gs() 357 imm = ureg_DECL_immediate_int(ureg, &zero, 1); in st_pbo_create_gs() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_surface.c | 904 struct ureg_program *ureg; in nv50_blitter_make_fp() local 934 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in nv50_blitter_make_fp() 935 if (!ureg) in nv50_blitter_make_fp() 938 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in nv50_blitter_make_fp() 940 ureg, TGSI_SEMANTIC_GENERIC, 0, TGSI_INTERPOLATE_LINEAR); in nv50_blitter_make_fp() 948 data = ureg_DECL_temporary(ureg); in nv50_blitter_make_fp() 951 ureg_TEX(ureg, ureg_writemask(data, TGSI_WRITEMASK_X), in nv50_blitter_make_fp() 952 target, tc, ureg_DECL_sampler(ureg, 1)); in nv50_blitter_make_fp() 953 ureg_MOV(ureg, ureg_writemask(data, TGSI_WRITEMASK_Y), in nv50_blitter_make_fp() 959 ureg_TEX(ureg, ureg_writemask(data, mask), in nv50_blitter_make_fp() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_fs.c | 215 struct ureg_program *ureg; in r300_dummy_fragment_shader() local 220 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in r300_dummy_fragment_shader() 221 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in r300_dummy_fragment_shader() 222 imm = ureg_imm4f(ureg, 0, 0, 0, 1); in r300_dummy_fragment_shader() 224 ureg_MOV(ureg, out, imm); in r300_dummy_fragment_shader() 225 ureg_END(ureg); in r300_dummy_fragment_shader() 227 state.tokens = ureg_finalize(ureg); in r300_dummy_fragment_shader() 232 ureg_destroy(ureg); in r300_dummy_fragment_shader()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_program.c | 1013 struct ureg_program *ureg; in nvc0_program_init_tcp_empty() local 1015 ureg = ureg_create(PIPE_SHADER_TESS_CTRL); in nvc0_program_init_tcp_empty() 1016 if (!ureg) in nvc0_program_init_tcp_empty() 1019 ureg_property(ureg, TGSI_PROPERTY_TCS_VERTICES_OUT, 1); in nvc0_program_init_tcp_empty() 1020 ureg_END(ureg); in nvc0_program_init_tcp_empty() 1022 nvc0->tcp_empty = ureg_create_shader_and_destroy(ureg, &nvc0->base.pipe); in nvc0_program_init_tcp_empty()
|
D | nvc0_surface.c | 844 struct ureg_program *ureg; in nvc0_blitter_make_vp() local 848 ureg = ureg_create(PIPE_SHADER_VERTEX); in nvc0_blitter_make_vp() 849 if (!ureg) in nvc0_blitter_make_vp() 852 opos = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in nvc0_blitter_make_vp() 853 ipos = ureg_DECL_vs_input(ureg, 0); in nvc0_blitter_make_vp() 854 otex = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 0); in nvc0_blitter_make_vp() 855 itex = ureg_DECL_vs_input(ureg, 1); in nvc0_blitter_make_vp() 857 ureg_MOV(ureg, ureg_writemask(opos, TGSI_WRITEMASK_XY ), ipos); in nvc0_blitter_make_vp() 858 ureg_MOV(ureg, ureg_writemask(otex, TGSI_WRITEMASK_XYZ), itex); in nvc0_blitter_make_vp() 859 ureg_END(ureg); in nvc0_blitter_make_vp() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_state_common.c | 1669 struct ureg_program *ureg = ureg_create(PIPE_SHADER_TESS_CTRL); in r600_generate_fixed_func_tcs() local 1671 if (!ureg) in r600_generate_fixed_func_tcs() 1676 ureg_DECL_constant2D(ureg, 0, 1, R600_BUFFER_INFO_CONST_BUFFER); in r600_generate_fixed_func_tcs() 1682 tessouter = ureg_DECL_output(ureg, TGSI_SEMANTIC_TESSOUTER, 0); in r600_generate_fixed_func_tcs() 1683 tessinner = ureg_DECL_output(ureg, TGSI_SEMANTIC_TESSINNER, 0); in r600_generate_fixed_func_tcs() 1685 ureg_MOV(ureg, tessouter, const0); in r600_generate_fixed_func_tcs() 1686 ureg_MOV(ureg, tessinner, const1); in r600_generate_fixed_func_tcs() 1687 ureg_END(ureg); in r600_generate_fixed_func_tcs() 1690 ureg_create_shader_and_destroy(ureg, &rctx->b.b); in r600_generate_fixed_func_tcs()
|
/third_party/mesa3d/docs/relnotes/ |
D | 7.10.3.rst | 251 - tgsi/ureg: bump the limit of immediates
|
D | 21.3.0.rst | 1282 - gallium/ureg: Sort the output decls. 1473 - gallium/ureg: Sort the input decls, too. 1615 - gallium/tgsi: rip out cylindrical wrap from ureg
|
D | 20.3.0.rst | 1514 - gallium/tgsi: Add a helper for initializing ureg from a shader_info. 1515 - gallium/ureg: Set the next shader stage from the shader info.
|
D | 7.10.rst | 2231 - ureg: support centroid interpolation
|
D | 20.2.0.rst | 4138 - freedreno: convert builtin blit VS prog to ureg builder
|