Home
last modified time | relevance | path

Searched refs:stcp (Results 1 – 7 of 7) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
Dst_shader_cache.c83 struct st_common_program *stcp = (struct st_common_program *) prog; in st_serialise_tgsi_program() local
85 write_stream_out_to_cache(&blob, &stcp->tgsi); in st_serialise_tgsi_program()
86 write_tgsi_to_cache(&blob, stcp->tgsi.tokens, prog, in st_serialise_tgsi_program()
87 stcp->num_tgsi_tokens); in st_serialise_tgsi_program()
98 struct st_compute_program *stcp = (struct st_compute_program *) prog; in st_serialise_tgsi_program() local
100 write_tgsi_to_cache(&blob, stcp->tgsi.prog, prog, in st_serialise_tgsi_program()
101 stcp->num_tgsi_tokens); in st_serialise_tgsi_program()
246 struct st_compute_program *stcp = (struct st_compute_program *) prog; in st_deserialise_tgsi_program() local
248 st_release_cp_variants(st, stcp); in st_deserialise_tgsi_program()
251 (const struct tgsi_token**) &stcp->tgsi.prog, in st_deserialise_tgsi_program()
[all …]
Dst_cb_program.c134 struct st_compute_program *stcp = in st_delete_program() local
137 st_release_cp_variants(st, stcp); in st_delete_program()
139 if (stcp->glsl_to_tgsi) in st_delete_program()
140 free_glsl_to_tgsi_visitor(stcp->glsl_to_tgsi); in st_delete_program()
221 struct st_compute_program *stcp = in st_program_string_notify() local
224 st_release_cp_variants(st, stcp); in st_program_string_notify()
225 if (!st_translate_compute_program(st, stcp)) in st_program_string_notify()
228 if (st->cp == stcp) in st_program_string_notify()
229 st->dirty |= stcp->affected_states; in st_program_string_notify()
Dst_atom_shader.c255 struct st_compute_program *stcp; in st_update_cp() local
263 stcp = st_compute_program(st->ctx->ComputeProgram._Current); in st_update_cp()
264 assert(stcp->Base.Target == GL_COMPUTE_PROGRAM_NV); in st_update_cp()
268 if (st->shader_has_one_variant[MESA_SHADER_COMPUTE] && stcp->variants) { in st_update_cp()
269 shader = stcp->variants->driver_shader; in st_update_cp()
271 shader = st_get_cp_variant(st, &stcp->tgsi, in st_update_cp()
272 &stcp->variants)->driver_shader; in st_update_cp()
275 st_reference_compprog(st, &st->cp, stcp); in st_update_cp()
Dst_program.c349 st_release_cp_variants(struct st_context *st, struct st_compute_program *stcp) in st_release_cp_variants() argument
351 struct st_basic_variant **variants = &stcp->variants; in st_release_cp_variants()
356 delete_basic_variant(st, v, stcp->Base.Target); in st_release_cp_variants()
362 if (stcp->tgsi.prog) { in st_release_cp_variants()
363 switch (stcp->tgsi.ir_type) { in st_release_cp_variants()
365 ureg_free_tokens(stcp->tgsi.prog); in st_release_cp_variants()
366 stcp->tgsi.prog = NULL; in st_release_cp_variants()
374 stcp->tgsi.prog = NULL; in st_release_cp_variants()
1402 struct st_compute_program *stcp = (struct st_compute_program *) prog; in st_translate_program_common() local
1403 out_state->tokens = ureg_get_tokens(ureg, &stcp->num_tgsi_tokens); in st_translate_program_common()
[all …]
Dst_glsl_to_nir.cpp424 struct st_compute_program *stcp; in set_st_program() local
448 stcp = (struct st_compute_program *)prog; in set_st_program()
449 stcp->shader_program = shader_program; in set_st_program()
450 stcp->tgsi.ir_type = PIPE_SHADER_IR_NIR; in set_st_program()
451 stcp->tgsi.prog = nir; in set_st_program()
Dst_program.h411 struct st_compute_program *stcp);
443 struct st_compute_program *stcp);
Dst_glsl_to_tgsi.cpp6830 struct st_compute_program *stcp; in get_mesa_program_tgsi() local
6848 stcp = (struct st_compute_program *)prog; in get_mesa_program_tgsi()
6849 stcp->glsl_to_tgsi = v; in get_mesa_program_tgsi()