• Home
  • Raw
  • Download

Lines Matching refs:dgs

904                                struct draw_geometry_shader *dgs)  in draw_bind_geometry_shader()  argument
908 if (dgs) { in draw_bind_geometry_shader()
909 draw->gs.geometry_shader = dgs; in draw_bind_geometry_shader()
910 draw->gs.num_gs_outputs = dgs->info.num_outputs; in draw_bind_geometry_shader()
911 draw->gs.position_output = dgs->position_output; in draw_bind_geometry_shader()
912 draw->gs.clipvertex_output = dgs->clipvertex_output; in draw_bind_geometry_shader()
913 draw_geometry_shader_prepare(dgs, draw); in draw_bind_geometry_shader()
922 struct draw_geometry_shader *dgs) in draw_delete_geometry_shader() argument
925 if (!dgs) { in draw_delete_geometry_shader()
930 struct llvm_geometry_shader *shader = llvm_geometry_shader(dgs); in draw_delete_geometry_shader()
942 if (dgs->llvm_prim_lengths) { in draw_delete_geometry_shader()
944 for (i = 0; i < dgs->num_vertex_streams * dgs->max_out_prims; ++i) { in draw_delete_geometry_shader()
945 align_free(dgs->llvm_prim_lengths[i]); in draw_delete_geometry_shader()
947 FREE(dgs->llvm_prim_lengths); in draw_delete_geometry_shader()
949 align_free(dgs->llvm_emitted_primitives); in draw_delete_geometry_shader()
950 align_free(dgs->llvm_emitted_vertices); in draw_delete_geometry_shader()
951 align_free(dgs->llvm_prim_ids); in draw_delete_geometry_shader()
953 align_free(dgs->gs_input); in draw_delete_geometry_shader()
957 if (draw->gs.tgsi.machine && draw->gs.tgsi.machine->Tokens == dgs->state.tokens) in draw_delete_geometry_shader()
961 FREE(dgs->stream[i].primitive_lengths); in draw_delete_geometry_shader()
963 if (dgs->state.ir.nir) in draw_delete_geometry_shader()
964 ralloc_free(dgs->state.ir.nir); in draw_delete_geometry_shader()
965 FREE((void*) dgs->state.tokens); in draw_delete_geometry_shader()
966 FREE(dgs); in draw_delete_geometry_shader()