Lines Matching refs:srf
85 if (r->srf) in xa_context_destroy()
86 pipe_surface_reference(&r->srf, NULL); in xa_context_destroy()
99 struct xa_surface *srf, in xa_surface_dma() argument
117 map = pipe_texture_map(pipe, srf->tex, 0, 0, in xa_surface_dma()
124 util_copy_rect(map, srf->tex->format, transfer->stride, in xa_surface_dma()
127 util_copy_rect(data, srf->tex->format, pitch, in xa_surface_dma()
138 struct xa_surface *srf, unsigned int usage) in xa_surface_map() argument
147 if (srf->transfer) in xa_surface_map()
166 map = pipe_texture_map(pipe, srf->tex, 0, 0, in xa_surface_map()
168 srf->tex->width0, srf->tex->height0, in xa_surface_map()
169 &srf->transfer); in xa_surface_map()
173 srf->mapping_pipe = pipe; in xa_surface_map()
178 xa_surface_unmap(struct xa_surface *srf) in xa_surface_unmap() argument
180 if (srf->transfer) { in xa_surface_unmap()
181 struct pipe_context *pipe = srf->mapping_pipe; in xa_surface_unmap()
183 pipe->texture_unmap(pipe, srf->transfer); in xa_surface_unmap()
184 srf->transfer = NULL; in xa_surface_unmap()
197 if (ctx->srf) { in xa_ctx_srf_create()
198 if (ctx->srf->texture == dst->tex) in xa_ctx_srf_create()
201 pipe_surface_reference(&ctx->srf, NULL); in xa_ctx_srf_create()
210 ctx->srf = ctx->pipe->create_surface(ctx->pipe, dst->tex, &srf_templ); in xa_ctx_srf_create()
211 if (!ctx->srf) in xa_ctx_srf_create()
237 renderer_copy_prepare(ctx, ctx->srf, src->tex, in xa_copy_prepare()
308 if (ctx->srf->format == PIPE_FORMAT_L8_UNORM) in xa_solid_prepare()
327 renderer_bind_destination(ctx, ctx->srf); in xa_solid_prepare()