/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_tgsi.c | 110 src_in_mask(struct ureg_program *ureg, in src_in_mask() argument 117 ureg_MUL(ureg, dst, src, mask); in src_in_mask() 119 ureg_MUL(ureg, dst, ureg_scalar(src, TGSI_SWIZZLE_W), mask); in src_in_mask() 122 ureg_MUL(ureg, dst, src, ureg_scalar(mask, TGSI_SWIZZLE_X)); in src_in_mask() 124 ureg_MUL(ureg, dst, src, ureg_scalar(mask, TGSI_SWIZZLE_W)); in src_in_mask() 129 vs_normalize_coords(struct ureg_program *ureg, in vs_normalize_coords() argument 133 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in vs_normalize_coords() 136 ureg_MAD(ureg, tmp, coords, const0, const1); in vs_normalize_coords() 138 ureg_release_temporary(ureg, tmp); in vs_normalize_coords() 143 linear_gradient(struct ureg_program *ureg, in linear_gradient() argument [all …]
|
/external/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 …]
|
/external/virglrenderer/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.c | 210 static void set_bad( struct ureg_program *ureg ) in set_bad() argument 212 tokens_error(&ureg->domain[0]); in set_bad() 217 static union tgsi_any_token *get_tokens( struct ureg_program *ureg, in get_tokens() argument 221 struct ureg_tokens *tokens = &ureg->domain[domain]; in get_tokens() 233 static union tgsi_any_token *retrieve_token( struct ureg_program *ureg, in retrieve_token() argument 237 if (ureg->domain[domain].tokens == error_tokens) in retrieve_token() 240 return &ureg->domain[domain].tokens[nr]; in retrieve_token() 271 ureg_property(struct ureg_program *ureg, unsigned name, unsigned value) in ureg_property() argument 273 assert(name < ARRAY_SIZE(ureg->properties)); in ureg_property() 274 ureg->properties[name] = value; in ureg_property() [all …]
|
D | tgsi_ureg.h | 112 ureg_get_tokens( struct ureg_program *ureg, 119 ureg_get_nr_outputs( const struct ureg_program *ureg ); 156 ureg_property(struct ureg_program *ureg, unsigned name, unsigned value); 172 ureg_DECL_fs_input_cyl(struct ureg_program *ureg, in ureg_DECL_fs_input_cyl() argument 178 return ureg_DECL_fs_input_cyl_centroid(ureg, in ureg_DECL_fs_input_cyl() 187 ureg_DECL_fs_input(struct ureg_program *ureg, in ureg_DECL_fs_input() argument 192 return ureg_DECL_fs_input_cyl_centroid(ureg, in ureg_DECL_fs_input() 247 ureg_DECL_constant2D(struct ureg_program *ureg, 276 ureg_release_temporary( struct ureg_program *ureg, 305 ureg_imm4f( struct ureg_program *ureg, in ureg_imm4f() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_ureg.c | 241 static void set_bad( struct ureg_program *ureg ) in set_bad() argument 243 tokens_error(&ureg->domain[0]); in set_bad() 248 static union tgsi_any_token *get_tokens( struct ureg_program *ureg, in get_tokens() argument 252 struct ureg_tokens *tokens = &ureg->domain[domain]; in get_tokens() 264 static union tgsi_any_token *retrieve_token( struct ureg_program *ureg, in retrieve_token() argument 268 if (ureg->domain[domain].tokens == error_tokens) in retrieve_token() 271 return &ureg->domain[domain].tokens[nr]; in retrieve_token() 276 ureg_property(struct ureg_program *ureg, unsigned name, unsigned value) in ureg_property() argument 278 assert(name < ARRAY_SIZE(ureg->properties)); in ureg_property() 279 ureg->properties[name] = value; in ureg_property() [all …]
|
D | tgsi_ureg.h | 112 ureg_set_next_shader_processor(struct ureg_program *ureg, unsigned processor); 118 ureg_get_tokens( struct ureg_program *ureg, 125 ureg_get_nr_outputs( const struct ureg_program *ureg ); 162 ureg_property(struct ureg_program *ureg, unsigned name, unsigned value); 192 ureg_DECL_fs_input_cyl(struct ureg_program *ureg, in ureg_DECL_fs_input_cyl() argument 198 return ureg_DECL_fs_input_cyl_centroid(ureg, in ureg_DECL_fs_input_cyl() 207 ureg_DECL_fs_input(struct ureg_program *ureg, in ureg_DECL_fs_input() argument 212 return ureg_DECL_fs_input_cyl_centroid(ureg, in ureg_DECL_fs_input() 268 ureg_DECL_output_array(struct ureg_program *ureg, 310 ureg_DECL_constant2D(struct ureg_program *ureg, [all …]
|
/external/mesa3d/src/gallium/state_trackers/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 | 445 struct ureg_program *ureg; member 626 tx->lconstf[n].reg = ureg_imm4f(tx->ureg, f[0], f[1], f[2], f[3]); in tx_set_lconstf() 652 ureg_imm4i(tx->ureg, i[0], i[1], i[2], i[3]) : in tx_set_lconsti() 653 ureg_imm4f(tx->ureg, i[0], i[1], i[2], i[3]); in tx_set_lconsti() 677 ureg_imm1u(tx->ureg, b ? 0xffffffff : 0) : in tx_set_lconstb() 678 ureg_imm1f(tx->ureg, b ? 1.0f : 0.0f); in tx_set_lconstb() 689 tx->regs.t[tx->num_scratch] = ureg_DECL_local_temporary(tx->ureg); in tx_scratch() 724 tx->regs.r[idx] = ureg_DECL_temporary(tx->ureg); in tx_temp_alloc() 732 tx->regs.address = ureg_DECL_address(tx->ureg); in tx_addr_alloc() 734 tx->regs.a0 = ureg_DECL_temporary(tx->ureg); in tx_addr_alloc() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_pbo.c | 291 struct ureg_program *ureg; in st_pbo_create_vs() local 297 ureg = ureg_create(PIPE_SHADER_VERTEX); in st_pbo_create_vs() 298 if (!ureg) in st_pbo_create_vs() 301 in_pos = ureg_DECL_vs_input(ureg, TGSI_SEMANTIC_POSITION); in st_pbo_create_vs() 303 out_pos = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in st_pbo_create_vs() 306 in_instanceid = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_INSTANCEID, 0); in st_pbo_create_vs() 309 out_layer = ureg_DECL_output(ureg, TGSI_SEMANTIC_LAYER, 0); in st_pbo_create_vs() 313 ureg_MOV(ureg, out_pos, in_pos); in st_pbo_create_vs() 318 ureg_I2F(ureg, ureg_writemask(out_pos, TGSI_WRITEMASK_Z), in st_pbo_create_vs() 322 ureg_MOV(ureg, ureg_writemask(out_layer, TGSI_WRITEMASK_X), in st_pbo_create_vs() [all …]
|
D | st_mesa_to_tgsi.c | 58 struct ureg_program *ureg; member 87 t->temps[index] = ureg_DECL_temporary(t->ureg); in dst_register() 129 t->temps[index] = ureg_DECL_temporary(t->ureg); in src_register() 138 return ureg_DECL_constant(t->ureg, 0); in src_register() 334 struct ureg_program *ureg = t->ureg; in emit_swz() local 368 ureg_MOV(ureg, dst, translate_src(t, SrcReg)); in emit_swz() 376 imm = ureg_imm3f(ureg, 0, 1, -1); in emit_swz() 412 ureg_MAD(ureg, in emit_swz() 419 ureg_MUL(ureg, in emit_swz() 425 ureg_MOV(ureg, in emit_swz() [all …]
|
D | st_atifs_to_tgsi.c | 39 struct ureg_program *ureg; member 83 t->temps[index] = ureg_DECL_temporary(t->ureg); in get_temp() 106 imm[1] = ureg_imm4f(t->ureg, 1.0f, 1.0f, 0.0f, 0.0f); in apply_swizzle() 107 imm[2] = ureg_imm4f(t->ureg, 0.0f, 0.0f, 1.0f, 1.0f); in apply_swizzle() 108 ureg_insn(t->ureg, TGSI_OPCODE_MAD, &tmp[0], 1, imm, 3, 0); in apply_swizzle() 115 ureg_insn(t->ureg, TGSI_OPCODE_RCP, &tmp[1], 1, &imm[0], 1, 0); in apply_swizzle() 119 ureg_insn(t->ureg, TGSI_OPCODE_MUL, &tmp[0], 1, imm, 2, 0); in apply_swizzle() 132 return ureg_imm1f(t->ureg, 0.0f); in get_source() 137 return ureg_imm1f(t->ureg, 0.0f); in get_source() 139 return ureg_imm1f(t->ureg, 1.0f); in get_source() [all …]
|
D | st_program.c | 387 struct ureg_program *ureg; in st_translate_vertex_program() local 472 ureg = ureg_create_with_screen(PIPE_SHADER_VERTEX, st->pipe->screen); in st_translate_vertex_program() 473 if (ureg == NULL) in st_translate_vertex_program() 477 ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED, in st_translate_vertex_program() 480 ureg_property(ureg, TGSI_PROPERTY_NUM_CULLDIST_ENABLED, in st_translate_vertex_program() 492 ureg, in st_translate_vertex_program() 516 ureg, in st_translate_vertex_program() 537 stvp->tgsi.tokens = ureg_get_tokens(ureg, &stvp->num_tgsi_tokens); in st_translate_vertex_program() 538 ureg_destroy(ureg); in st_translate_vertex_program() 654 struct ureg_program *ureg; in st_translate_fragment_program() local [all …]
|
D | st_cb_drawpixels.c | 122 struct ureg_program *ureg; in get_drawpix_z_stencil_program() local 136 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in get_drawpix_z_stencil_program() 137 if (ureg == NULL) in get_drawpix_z_stencil_program() 140 ureg_property(ureg, TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS, TRUE); in get_drawpix_z_stencil_program() 143 color = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_COLOR, 0, in get_drawpix_z_stencil_program() 145 out_color = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in get_drawpix_z_stencil_program() 147 depth_sampler = ureg_DECL_sampler(ureg, 0); in get_drawpix_z_stencil_program() 148 ureg_DECL_sampler_view(ureg, 0, TGSI_TEXTURE_2D, in get_drawpix_z_stencil_program() 153 out_depth = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in get_drawpix_z_stencil_program() 157 stencil_sampler = ureg_DECL_sampler(ureg, 1); in get_drawpix_z_stencil_program() [all …]
|
D | st_glsl_to_tgsi.cpp | 5365 struct ureg_program *ureg; member 5491 struct ureg_program *ureg = t->ureg; in emit_immediate() local 5496 return ureg_DECL_immediate(ureg, &values[0].f, size); in emit_immediate() 5498 return ureg_DECL_immediate_f64(ureg, (double *)&values[0].f, size); in emit_immediate() 5500 return ureg_DECL_immediate_int64(ureg, (int64_t *)&values[0].f, size); in emit_immediate() 5502 return ureg_DECL_immediate_uint64(ureg, (uint64_t *)&values[0].f, size); in emit_immediate() 5504 return ureg_DECL_immediate_int(ureg, &values[0].i, size); in emit_immediate() 5507 return ureg_DECL_immediate_uint(ureg, &values[0].u, size); in emit_immediate() 5543 t->temps[index] = ureg_DECL_local_temporary(t->ureg); in dst_register() 5553 t->ureg, t->array_sizes[array], TRUE); in dst_register() [all …]
|
D | st_mesa_to_tgsi.h | 54 struct ureg_program *ureg,
|
/external/mesa3d/src/mesa/main/ |
D | ffvertex_prog.c | 295 struct ureg { struct 314 struct ureg eye_position; argument 315 struct ureg eye_position_z; 316 struct ureg eye_position_normalized; 317 struct ureg transformed_normal; 318 struct ureg identity; 325 static const struct ureg undef = { 343 static struct ureg make_ureg(GLuint file, GLint idx) in make_ureg() 345 struct ureg reg; in make_ureg() 355 static struct ureg negate( struct ureg reg ) in negate() [all …]
|
/external/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() 265 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()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_program.c | 100 struct ureg_program *ureg; in fd_prog_blit() local 104 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in fd_prog_blit() 105 if (!ureg) in fd_prog_blit() 109 ureg, TGSI_SEMANTIC_GENERIC, 0, TGSI_INTERPOLATE_PERSPECTIVE); in fd_prog_blit() 111 ureg_TEX(ureg, ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, i), in fd_prog_blit() 112 TGSI_TEXTURE_2D, tc, ureg_DECL_sampler(ureg, i)); in fd_prog_blit() 114 ureg_TEX(ureg, in fd_prog_blit() 116 ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0), in fd_prog_blit() 118 TGSI_TEXTURE_2D, tc, ureg_DECL_sampler(ureg, rts)); in fd_prog_blit() 120 ureg_END(ureg); in fd_prog_blit() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_vs.c | 184 struct ureg_program *ureg; in r300_dummy_vertex_shader() local 190 ureg = ureg_create(PIPE_SHADER_VERTEX); in r300_dummy_vertex_shader() 191 dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in r300_dummy_vertex_shader() 192 imm = ureg_imm4f(ureg, 0, 0, 0, 1); in r300_dummy_vertex_shader() 194 ureg_MOV(ureg, dst, imm); in r300_dummy_vertex_shader() 195 ureg_END(ureg); in r300_dummy_vertex_shader() 197 shader->state.tokens = tgsi_dup_tokens(ureg_finalize(ureg)); in r300_dummy_vertex_shader() 198 ureg_destroy(ureg); in r300_dummy_vertex_shader()
|
D | r300_fs.c | 218 struct ureg_program *ureg; in r300_dummy_fragment_shader() local 223 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in r300_dummy_fragment_shader() 224 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in r300_dummy_fragment_shader() 225 imm = ureg_imm4f(ureg, 0, 0, 0, 1); in r300_dummy_fragment_shader() 227 ureg_MOV(ureg, out, imm); in r300_dummy_fragment_shader() 228 ureg_END(ureg); in r300_dummy_fragment_shader() 230 state.tokens = ureg_finalize(ureg); in r300_dummy_fragment_shader() 235 ureg_destroy(ureg); in r300_dummy_fragment_shader()
|
/external/u-boot/drivers/i2c/ |
D | sh_i2c.c | 17 #define ureg(name) u8 name; u8 __pad_##name##0; u16 __pad_##name##1; macro 19 ureg(icdr); 20 ureg(iccr); 21 ureg(icsr); 22 ureg(icic); 23 ureg(iccl); 24 ureg(icch); 26 #undef ureg
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_surface.c | 888 struct ureg_program *ureg; in nv50_blitter_make_fp() local 914 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in nv50_blitter_make_fp() 915 if (!ureg) in nv50_blitter_make_fp() 918 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in nv50_blitter_make_fp() 920 ureg, TGSI_SEMANTIC_GENERIC, 0, TGSI_INTERPOLATE_LINEAR); in nv50_blitter_make_fp() 928 data = ureg_DECL_temporary(ureg); in nv50_blitter_make_fp() 931 ureg_TEX(ureg, ureg_writemask(data, TGSI_WRITEMASK_X), in nv50_blitter_make_fp() 932 target, tc, ureg_DECL_sampler(ureg, 1)); in nv50_blitter_make_fp() 933 ureg_MOV(ureg, ureg_writemask(data, TGSI_WRITEMASK_Y), in nv50_blitter_make_fp() 939 ureg_TEX(ureg, ureg_writemask(data, mask), in nv50_blitter_make_fp() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_shaders.c | 3123 struct ureg_program *ureg = ureg_create(PIPE_SHADER_TESS_CTRL); in si_generate_fixed_func_tcs() local 3125 if (!ureg) in si_generate_fixed_func_tcs() 3130 outer = ureg_DECL_system_value(ureg, in si_generate_fixed_func_tcs() 3132 inner = ureg_DECL_system_value(ureg, in si_generate_fixed_func_tcs() 3135 tessouter = ureg_DECL_output(ureg, TGSI_SEMANTIC_TESSOUTER, 0); in si_generate_fixed_func_tcs() 3136 tessinner = ureg_DECL_output(ureg, TGSI_SEMANTIC_TESSINNER, 0); in si_generate_fixed_func_tcs() 3138 ureg_MOV(ureg, tessouter, outer); in si_generate_fixed_func_tcs() 3139 ureg_MOV(ureg, tessinner, inner); in si_generate_fixed_func_tcs() 3140 ureg_END(ureg); in si_generate_fixed_func_tcs() 3143 ureg_create_shader_and_destroy(ureg, &sctx->b.b); in si_generate_fixed_func_tcs() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_debug.h | 37 extern void i915_print_ureg(const char *msg, unsigned ureg);
|