Lines Matching refs:targ
953 struct nv50_so_target *targ = MALLOC_STRUCT(nv50_so_target); in nv50_so_target_create() local
954 if (!targ) in nv50_so_target_create()
958 targ->pq = pipe->create_query(pipe, in nv50_so_target_create()
960 if (!targ->pq) { in nv50_so_target_create()
961 FREE(targ); in nv50_so_target_create()
965 targ->pq = NULL; in nv50_so_target_create()
967 targ->clean = TRUE; in nv50_so_target_create()
969 targ->pipe.buffer_size = size; in nv50_so_target_create()
970 targ->pipe.buffer_offset = offset; in nv50_so_target_create()
971 targ->pipe.context = pipe; in nv50_so_target_create()
972 targ->pipe.buffer = NULL; in nv50_so_target_create()
973 pipe_resource_reference(&targ->pipe.buffer, res); in nv50_so_target_create()
974 pipe_reference_init(&targ->pipe.reference, 1); in nv50_so_target_create()
976 return &targ->pipe; in nv50_so_target_create()
983 struct nv50_so_target *targ = nv50_so_target(ptarg); in nv50_so_target_destroy() local
984 if (targ->pq) in nv50_so_target_destroy()
985 pipe->destroy_query(pipe, targ->pq); in nv50_so_target_destroy()
986 pipe_resource_reference(&targ->pipe.buffer, NULL); in nv50_so_target_destroy()
987 FREE(targ); in nv50_so_target_destroy()