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