Lines Matching refs:stcp

349 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()
1404 stcp->tgsi.prog = out_state->tokens; in st_translate_program_common()
1406 struct st_common_program *stcp = (struct st_common_program *) prog; in st_translate_program_common() local
1407 out_state->tokens = ureg_get_tokens(ureg, &stcp->num_tgsi_tokens); in st_translate_program_common()
1646 struct st_compute_program *stcp) in st_translate_compute_program() argument
1651 if (stcp->shader_program) { in st_translate_compute_program()
1653 st_finalize_nir(st, &stcp->Base, stcp->shader_program, in st_translate_compute_program()
1654 (struct nir_shader *) stcp->tgsi.prog); in st_translate_compute_program()
1663 st_translate_program_common(st, &stcp->Base, stcp->glsl_to_tgsi, ureg, in st_translate_compute_program()
1666 stcp->tgsi.ir_type = PIPE_SHADER_IR_TGSI; in st_translate_compute_program()
1667 stcp->tgsi.req_local_mem = stcp->Base.info.cs.shared_size; in st_translate_compute_program()
1668 stcp->tgsi.req_private_mem = 0; in st_translate_compute_program()
1669 stcp->tgsi.req_input_mem = 0; in st_translate_compute_program()
1671 free_glsl_to_tgsi_visitor(stcp->glsl_to_tgsi); in st_translate_compute_program()
1672 stcp->glsl_to_tgsi = NULL; in st_translate_compute_program()