Lines Matching refs:gpv

142 delete_gp_variant(struct st_context *st, struct st_gp_variant *gpv)  in delete_gp_variant()  argument
144 if (gpv->driver_shader) in delete_gp_variant()
145 cso_delete_geometry_shader(st->cso_context, gpv->driver_shader); in delete_gp_variant()
147 FREE(gpv); in delete_gp_variant()
157 struct st_gp_variant *gpv; in st_release_gp_variants() local
159 for (gpv = stgp->variants; gpv; ) { in st_release_gp_variants()
160 struct st_gp_variant *next = gpv->next; in st_release_gp_variants()
161 delete_gp_variant(st, gpv); in st_release_gp_variants()
162 gpv = next; in st_release_gp_variants()
828 struct st_gp_variant *gpv; in st_translate_geometry_program() local
830 gpv = CALLOC_STRUCT(st_gp_variant); in st_translate_geometry_program()
831 if (!gpv) in st_translate_geometry_program()
839 FREE(gpv); in st_translate_geometry_program()
1047 gpv->driver_shader = pipe->create_gs_state(pipe, &stgp->tgsi); in st_translate_geometry_program()
1048 gpv->key = *key; in st_translate_geometry_program()
1060 return gpv; in st_translate_geometry_program()
1072 struct st_gp_variant *gpv; in st_get_gp_variant() local
1075 for (gpv = stgp->variants; gpv; gpv = gpv->next) { in st_get_gp_variant()
1076 if (memcmp(&gpv->key, key, sizeof(*key)) == 0) { in st_get_gp_variant()
1081 if (!gpv) { in st_get_gp_variant()
1083 gpv = st_translate_geometry_program(st, stgp, key); in st_get_gp_variant()
1084 if (gpv) { in st_get_gp_variant()
1086 gpv->next = stgp->variants; in st_get_gp_variant()
1087 stgp->variants = gpv; in st_get_gp_variant()
1091 return gpv; in st_get_gp_variant()
1200 struct st_gp_variant *gpv, **prevPtr = &stgp->variants; in destroy_program_variants() local
1202 for (gpv = stgp->variants; gpv; ) { in destroy_program_variants()
1203 struct st_gp_variant *next = gpv->next; in destroy_program_variants()
1204 if (gpv->key.st == st) { in destroy_program_variants()
1208 delete_gp_variant(st, gpv); in destroy_program_variants()
1211 prevPtr = &gpv->next; in destroy_program_variants()
1213 gpv = next; in destroy_program_variants()