Lines Matching refs:surface
109 struct pipe_surface *surface = CALLOC_STRUCT(pipe_surface); in noop_create_surface() local
111 if (surface == NULL) in noop_create_surface()
113 pipe_reference_init(&surface->reference, 1); in noop_create_surface()
114 pipe_resource_reference(&surface->texture, texture); in noop_create_surface()
115 surface->context = ctx; in noop_create_surface()
116 surface->format = surf_tmpl->format; in noop_create_surface()
117 surface->width = texture->width0; in noop_create_surface()
118 surface->height = texture->height0; in noop_create_surface()
119 surface->usage = surf_tmpl->usage; in noop_create_surface()
120 surface->texture = texture; in noop_create_surface()
121 surface->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in noop_create_surface()
122 surface->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in noop_create_surface()
123 surface->u.tex.level = surf_tmpl->u.tex.level; in noop_create_surface()
125 return surface; in noop_create_surface()
192 struct pipe_surface *surface) in noop_surface_destroy() argument
194 pipe_resource_reference(&surface->texture, NULL); in noop_surface_destroy()
195 FREE(surface); in noop_surface_destroy()