/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_ureg.c | 247 static void set_bad( struct ureg_program *ureg ) in set_bad() 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 in ureg_property() 289 ureg_DECL_fs_input_centroid_layout(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, enum tgsi_interpolate_loc interp_location, unsigned index, unsigned usage_mask, unsigned array_id, unsigned array_size) ureg_DECL_fs_input_centroid_layout() argument 341 ureg_DECL_fs_input_centroid(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, enum tgsi_interpolate_loc interp_location, unsigned array_id, unsigned array_size) ureg_DECL_fs_input_centroid() argument 357 ureg_DECL_vs_input( struct ureg_program *ureg, unsigned index ) ureg_DECL_vs_input() argument 369 ureg_DECL_input_layout(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned index, unsigned usage_mask, unsigned array_id, unsigned array_size) ureg_DECL_input_layout() argument 385 ureg_DECL_input(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned array_id, unsigned array_size) ureg_DECL_input() argument 399 ureg_DECL_system_value(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index) ureg_DECL_system_value() argument 427 ureg_DECL_output_layout(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned streams, unsigned index, unsigned usage_mask, unsigned array_id, unsigned array_size, boolean invariant) ureg_DECL_output_layout() argument 483 ureg_DECL_output_masked(struct ureg_program *ureg, unsigned name, unsigned index, unsigned usage_mask, unsigned array_id, unsigned array_size) ureg_DECL_output_masked() argument 497 ureg_DECL_output(struct ureg_program *ureg, enum tgsi_semantic name, unsigned index) ureg_DECL_output() argument 506 ureg_DECL_output_array(struct ureg_program *ureg, enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned array_id, unsigned array_size) ureg_DECL_output_array() argument 529 ureg_DECL_constant2D(struct ureg_program *ureg, unsigned first, unsigned last, unsigned index2D) ureg_DECL_constant2D() argument 553 ureg_DECL_constant(struct ureg_program *ureg, unsigned index) ureg_DECL_constant() argument 616 ureg_DECL_hw_atomic(struct ureg_program *ureg, unsigned first, unsigned last, unsigned buffer_id, unsigned array_id) ureg_DECL_hw_atomic() argument 635 alloc_temporary( struct ureg_program *ureg, boolean local ) alloc_temporary() argument 677 ureg_DECL_array_temporary( struct ureg_program *ureg, unsigned size, boolean local ) ureg_DECL_array_temporary() argument 703 ureg_release_temporary( struct ureg_program *ureg, struct ureg_dst tmp ) ureg_release_temporary() argument 724 ureg_DECL_sampler( struct ureg_program *ureg, unsigned nr ) ureg_DECL_sampler() argument 747 ureg_DECL_sampler_view(struct ureg_program *ureg, unsigned index, enum tgsi_texture_type target, enum tgsi_return_type return_type_x, enum tgsi_return_type return_type_y, enum tgsi_return_type return_type_z, enum tgsi_return_type return_type_w) ureg_DECL_sampler_view() argument 782 ureg_DECL_image(struct ureg_program *ureg, unsigned index, enum tgsi_texture_type target, enum pipe_format format, boolean wr, boolean raw) ureg_DECL_image() argument 812 ureg_DECL_buffer(struct ureg_program *ureg, unsigned nr, bool atomic) ureg_DECL_buffer() argument 835 ureg_DECL_memory(struct ureg_program *ureg, unsigned memory_type) ureg_DECL_memory() argument 930 decl_immediate( struct ureg_program *ureg, const unsigned *v, unsigned nr, unsigned type ) decl_immediate() argument 995 ureg_DECL_immediate( struct ureg_program *ureg, const float *v, unsigned nr ) ureg_DECL_immediate() argument 1013 ureg_DECL_immediate_f64( struct ureg_program *ureg, const double *v, unsigned nr ) ureg_DECL_immediate_f64() argument 1032 ureg_DECL_immediate_uint( struct ureg_program *ureg, const unsigned *v, unsigned nr ) ureg_DECL_immediate_uint() argument 1041 ureg_DECL_immediate_block_uint( struct ureg_program *ureg, const unsigned *v, unsigned nr ) ureg_DECL_immediate_block_uint() argument 1070 ureg_DECL_immediate_int( struct ureg_program *ureg, const int *v, unsigned nr ) ureg_DECL_immediate_int() argument 1078 ureg_DECL_immediate_uint64( struct ureg_program *ureg, const uint64_t *v, unsigned nr ) ureg_DECL_immediate_uint64() argument 1097 ureg_DECL_immediate_int64( struct ureg_program *ureg, const int64_t *v, unsigned nr ) ureg_DECL_immediate_int64() argument 1116 ureg_emit_src( struct ureg_program *ureg, struct ureg_src src ) ureg_emit_src() argument 1182 ureg_emit_dst( struct ureg_program *ureg, struct ureg_dst dst ) ureg_emit_dst() argument 1260 ureg_emit_insn(struct ureg_program *ureg, enum tgsi_opcode opcode, boolean saturate, unsigned precise, unsigned num_dst, unsigned num_src) ureg_emit_insn() argument 1297 ureg_emit_label(struct ureg_program *ureg, unsigned extended_token, unsigned *label_token ) ureg_emit_label() argument 1328 ureg_fixup_label(struct ureg_program *ureg, unsigned label_token, unsigned instruction_number ) ureg_fixup_label() argument 1339 ureg_emit_texture(struct ureg_program *ureg, unsigned extended_token, enum tgsi_texture_type target, enum tgsi_return_type return_type, unsigned num_offsets) ureg_emit_texture() argument 1358 ureg_emit_texture_offset(struct ureg_program *ureg, const struct tgsi_texture_offset *offset) ureg_emit_texture_offset() argument 1370 ureg_emit_memory(struct ureg_program *ureg, unsigned extended_token, unsigned qualifier, enum tgsi_texture_type texture, enum pipe_format format) ureg_emit_memory() argument 1390 ureg_fixup_insn_size(struct ureg_program *ureg, unsigned insn ) ureg_fixup_insn_size() argument 1401 ureg_insn(struct ureg_program *ureg, enum tgsi_opcode opcode, const struct ureg_dst *dst, unsigned nr_dst, const struct ureg_src *src, unsigned nr_src, unsigned precise ) ureg_insn() argument 1436 ureg_tex_insn(struct ureg_program *ureg, enum tgsi_opcode opcode, const struct ureg_dst *dst, unsigned nr_dst, enum tgsi_texture_type target, enum tgsi_return_type return_type, const struct tgsi_texture_offset *texoffsets, unsigned nr_offset, const struct ureg_src *src, unsigned nr_src ) ureg_tex_insn() argument 1481 ureg_memory_insn(struct ureg_program *ureg, enum tgsi_opcode opcode, const struct ureg_dst *dst, unsigned nr_dst, const struct ureg_src *src, unsigned nr_src, unsigned qualifier, enum tgsi_texture_type texture, enum pipe_format format) ureg_memory_insn() argument 1514 emit_decl_semantic(struct ureg_program *ureg, unsigned file, unsigned first, unsigned last, enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned streams, unsigned usage_mask, unsigned array_id, boolean invariant) emit_decl_semantic() argument 1555 emit_decl_atomic_2d(struct ureg_program *ureg, unsigned first, unsigned last, unsigned index2D, unsigned array_id) emit_decl_atomic_2d() argument 1585 emit_decl_fs(struct ureg_program *ureg, unsigned file, unsigned first, unsigned last, enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interpolate, enum tgsi_interpolate_loc interpolate_location, unsigned array_id, unsigned usage_mask) emit_decl_fs() argument 1627 emit_decl_temps( struct ureg_program *ureg, unsigned first, unsigned last, boolean local, unsigned arrayid ) emit_decl_temps() argument 1653 emit_decl_range( struct ureg_program *ureg, unsigned file, unsigned first, unsigned count ) emit_decl_range() argument 1673 emit_decl_range2D(struct ureg_program *ureg, unsigned file, unsigned first, unsigned last, unsigned index2D) emit_decl_range2D() argument 1697 emit_decl_sampler_view(struct ureg_program *ureg, unsigned index, enum tgsi_texture_type target, enum tgsi_return_type return_type_x, enum tgsi_return_type return_type_y, enum tgsi_return_type return_type_z, enum tgsi_return_type return_type_w ) emit_decl_sampler_view() argument 1726 emit_decl_image(struct ureg_program *ureg, unsigned index, enum tgsi_texture_type target, enum pipe_format format, boolean wr, boolean raw) emit_decl_image() argument 1753 emit_decl_buffer(struct ureg_program *ureg, unsigned index, bool atomic) emit_decl_buffer() argument 1772 emit_decl_memory(struct ureg_program *ureg, unsigned memory_type) emit_decl_memory() argument 1789 emit_immediate( struct ureg_program *ureg, const unsigned *v, unsigned type ) emit_immediate() argument 1808 emit_property(struct ureg_program *ureg, unsigned name, unsigned data) emit_property() argument 2090 fixup_header_size(struct ureg_program *ureg) fixup_header_size() argument 2171 ureg_create_shader( struct ureg_program *ureg, struct pipe_context *pipe, const struct pipe_stream_output_info *so ) ureg_create_shader() argument 2201 ureg_get_tokens( struct ureg_program *ureg, unsigned *nr_tokens ) ureg_get_tokens() argument 2240 struct ureg_program *ureg = CALLOC_STRUCT( ureg_program ); ureg_create_with_screen() local 2280 ureg_set_next_shader_processor(struct ureg_program *ureg, unsigned processor) ureg_set_next_shader_processor() argument 2295 ureg_setup_clipdist_info(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_clipdist_info() argument 2307 ureg_setup_tess_ctrl_shader(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_tess_ctrl_shader() argument 2315 ureg_setup_tess_eval_shader(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_tess_eval_shader() argument 2336 ureg_setup_geometry_shader(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_geometry_shader() argument 2350 ureg_setup_fragment_shader(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_fragment_shader() argument 2390 ureg_setup_compute_shader(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_compute_shader() argument 2405 ureg_setup_shader_info(struct ureg_program *ureg, const struct shader_info *info) ureg_setup_shader_info() argument 2457 ureg_set_precise( struct ureg_program *ureg, bool precise ) ureg_set_precise() argument [all...] |
H A 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, 375 ureg_imm4f( struct ureg_program *ureg, float a, float b, float c, float d) ureg_imm4f() argument 388 ureg_imm3f( struct ureg_program *ureg, float a, float b, float c) ureg_imm3f() argument 400 ureg_imm2f( struct ureg_program *ureg, float a, float b) ureg_imm2f() argument 410 ureg_imm1f( struct ureg_program *ureg, float a) ureg_imm1f() argument 419 ureg_imm4u( struct ureg_program *ureg, unsigned a, unsigned b, unsigned c, unsigned d) ureg_imm4u() argument 432 ureg_imm3u( struct ureg_program *ureg, unsigned a, unsigned b, unsigned c) ureg_imm3u() argument 444 ureg_imm2u( struct ureg_program *ureg, unsigned a, unsigned b) ureg_imm2u() argument 454 ureg_imm1u( struct ureg_program *ureg, unsigned a) ureg_imm1u() argument 461 ureg_imm4i( struct ureg_program *ureg, int a, int b, int c, int d) ureg_imm4i() argument 474 ureg_imm3i( struct ureg_program *ureg, int a, int b, int c) ureg_imm3i() argument 486 ureg_imm2i( struct ureg_program *ureg, int a, int b) ureg_imm2i() argument 496 ureg_imm1i( struct ureg_program *ureg, int a) ureg_imm1i() argument [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A 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_writemas in util_make_vertex_passthrough_shader_with_so() 203 ureg_load_tex(struct ureg_program *ureg, struct ureg_dst out, struct ureg_src coord, struct ureg_src sampler, enum tgsi_texture_type tex_target, bool load_level_zero, bool use_txf) ureg_load_tex() argument 239 struct ureg_program *ureg; util_make_fragment_tex_shader_xrbias() local 295 struct ureg_program *ureg; util_make_fragment_tex_shader_writemask() local 390 struct ureg_program *ureg; util_make_fs_blit_zs() local 484 struct ureg_program *ureg = ureg_create(PIPE_SHADER_FRAGMENT); util_make_empty_fragment_shader() local 501 struct ureg_program *ureg; util_make_fragment_cloneinput_shader() local 714 struct ureg_program *ureg; util_make_fs_msaa_resolve() local 775 struct ureg_program *ureg; util_make_fs_msaa_resolve_bilinear() local 873 struct ureg_program *ureg; util_make_geometry_passthrough_shader() local 934 struct ureg_program *ureg; util_make_fs_pack_color_zs() local 1097 struct ureg_program *ureg; util_make_tess_ctrl_passthrough_shader() local [all...] |
/third_party/mesa3d/src/gallium/frontends/xa/ |
H A 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, tm in vs_normalize_coords() 144 struct ureg_program *ureg; create_vs() local 194 create_yuv_shader(struct pipe_context *pipe, struct ureg_program *ureg) create_yuv_shader() argument 257 xrender_tex(struct ureg_program *ureg, struct ureg_dst dst, struct ureg_src coords, struct ureg_src sampler, const struct ureg_src *imm0, boolean repeat_none, boolean swizzle, boolean set_alpha) xrender_tex() argument 315 read_input(struct ureg_program *ureg, struct ureg_dst dst, const struct ureg_src *imm0, boolean repeat_none, boolean swizzle, boolean set_alpha, boolean is_src, unsigned *cur_constant, unsigned *cur_sampler) read_input() argument 342 struct ureg_program *ureg; create_fs() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A 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, in si_get_blitter_vs() 106 struct ureg_program *ureg = ureg_create(PIPE_SHADER_COMPUTE); si_create_dma_compute_shader() local 518 struct ureg_program *ureg = ureg_create(PIPE_SHADER_COMPUTE); si_create_fmask_expand_cs() local [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A 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_ in ureg_normalize3() 335 struct ureg_program *ureg = ureg_create(PIPE_SHADER_VERTEX); nine_ff_build_vs() local 1089 struct ureg_program *ureg; global() member 1206 struct ureg_program *ureg = ps->ureg; ps_do_ts_op() local 1325 struct ureg_program *ureg = ureg_create(PIPE_SHADER_FRAGMENT); nine_ff_build_ps() local [all...] |
H A 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() 996 struct ureg_program *ureg = tx->ureg; nine_get_position_input() local 1008 struct ureg_program *ureg = tx->ureg; tx_src_param() local 1477 struct ureg_program *ureg = tx->ureg; NineTranslateInstruction_Mkxn() local 1656 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1667 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1677 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1773 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1788 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1838 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1877 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1906 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 1947 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2242 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2405 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2420 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2432 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2447 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2464 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2496 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2509 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2539 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2618 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2635 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2657 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2686 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2729 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2746 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2770 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2802 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2818 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2876 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2903 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2944 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2977 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 2991 struct ureg_program *ureg = tx->ureg; DECL_SPECIAL() local 3718 struct ureg_program *ureg = tx->ureg; shader_add_vs_viewport_transform() local 3736 struct ureg_program *ureg = tx->ureg; shader_add_ps_fog_stage() local 3881 nine_ureg_create_shader(struct ureg_program *ureg, struct pipe_context *pipe, const struct pipe_stream_output_info *so) nine_ureg_create_shader() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
H A D | ShaderTGSI.c | 203 struct ureg_program *ureg; member 423 struct ureg_program *ureg, in dcl_base_output() 450 struct ureg_program *ureg, in dcl_base_input() 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() 495 reg = ureg_DECL_vs_input(ureg, dst->base.index[0].imm); in dcl_vs_input() 497 dcl_base_input(sx, ureg, ds in dcl_vs_input() 422 dcl_base_output(struct Shader_xlate *sx, struct ureg_program *ureg, struct ureg_dst reg, const struct Shader_dst_operand *operand) dcl_base_output() argument 449 dcl_base_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *operand, struct ureg_src dcl_reg, uint index, uint siv_name) dcl_base_input() argument 487 dcl_vs_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst) dcl_vs_input() argument 502 dcl_gs_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst) dcl_gs_input() argument 531 dcl_sgv_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst, uint dcl_siv_name) dcl_sgv_input() argument 547 dcl_siv_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst, uint dcl_siv_name) dcl_siv_input() argument 567 dcl_ps_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst, uint dcl_in_ps_interp) dcl_ps_input() argument 586 dcl_ps_sgv_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst, uint dcl_siv_name) dcl_ps_sgv_input() argument 627 dcl_ps_siv_input(struct Shader_xlate *sx, struct ureg_program *ureg, const struct Shader_dst_operand *dst, uint dcl_siv_name, uint dcl_in_ps_interp) dcl_ps_siv_input() argument 1165 sample_ureg_emit(struct ureg_program *ureg, unsigned tgsi_opcode, unsigned num_src, struct Shader_opcode *opcode, struct ureg_dst dst, struct ureg_src *src) sample_ureg_emit() argument 1206 expand_unary_to_scalarf(struct ureg_program *ureg, unary_ureg_func func, struct Shader_xlate *sx, struct Shader_opcode *opcode) expand_unary_to_scalarf() argument 1246 struct ureg_program *ureg = NULL; Shader_tgsi_translate() local [all...] |
H A 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/ |
H A D | ffvertex_prog.c | 301 struct ureg { struct 321 struct ureg eye_position; 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 = { 348 /* Construct a ureg: 350 static struct ureg make_ureg(GLuint file, GLint idx) in make_ureg() 352 struct ureg re in make_ureg() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A 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() 170 struct ureg_program *ureg; fd_prog_blit_fs() local [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A 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...] |
H A 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/ |
H A 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_CBUF in ntt_setup_outputs() [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A 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, in st_pbo_create_gs() [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A 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/nv50/ |
H A 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_writemas in nv50_blitter_make_fp() [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A 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()
|
H A 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/ |
H A 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()
|