Lines Matching refs:targ
875 struct nvc0_so_target *targ = MALLOC_STRUCT(nvc0_so_target); in nvc0_so_target_create() local
876 if (!targ) in nvc0_so_target_create()
879 targ->pq = pipe->create_query(pipe, NVC0_QUERY_TFB_BUFFER_OFFSET); in nvc0_so_target_create()
880 if (!targ->pq) { in nvc0_so_target_create()
881 FREE(targ); in nvc0_so_target_create()
884 targ->clean = TRUE; in nvc0_so_target_create()
886 targ->pipe.buffer_size = size; in nvc0_so_target_create()
887 targ->pipe.buffer_offset = offset; in nvc0_so_target_create()
888 targ->pipe.context = pipe; in nvc0_so_target_create()
889 targ->pipe.buffer = NULL; in nvc0_so_target_create()
890 pipe_resource_reference(&targ->pipe.buffer, res); in nvc0_so_target_create()
891 pipe_reference_init(&targ->pipe.reference, 1); in nvc0_so_target_create()
893 return &targ->pipe; in nvc0_so_target_create()
900 struct nvc0_so_target *targ = nvc0_so_target(ptarg); in nvc0_so_target_destroy() local
901 pipe->destroy_query(pipe, targ->pq); in nvc0_so_target_destroy()
902 pipe_resource_reference(&targ->pipe.buffer, NULL); in nvc0_so_target_destroy()
903 FREE(targ); in nvc0_so_target_destroy()