Home | History | Annotate | Download | only in trace

Lines Matching refs:tr_surf

80    struct trace_surface *tr_surf;
87 tr_surf = CALLOC_STRUCT(trace_surface);
88 if(!tr_surf)
91 memcpy(&tr_surf->base, surface, sizeof(struct pipe_surface));
93 pipe_reference_init(&tr_surf->base.reference, 1);
94 tr_surf->base.texture = NULL;
95 pipe_resource_reference(&tr_surf->base.texture, &tr_res->base);
96 tr_surf->surface = surface;
98 return &tr_surf->base;
107 trace_surf_destroy(struct trace_surface *tr_surf)
109 pipe_resource_reference(&tr_surf->base.texture, NULL);
110 pipe_surface_reference(&tr_surf->surface, NULL);
111 FREE(tr_surf);