Home | History | Annotate | Download | only in xa

Lines Matching refs:srf

85     if (r->srf)
86 pipe_surface_reference(&r->srf, NULL);
98 struct xa_surface *srf,
116 map = pipe_transfer_map(pipe, srf->tex, 0, 0,
123 util_copy_rect(map, srf->tex->format, transfer->stride,
126 util_copy_rect(data, srf->tex->format, pitch,
137 struct xa_surface *srf, unsigned int usage)
146 if (srf->transfer)
165 map = pipe_transfer_map(pipe, srf->tex, 0, 0,
167 srf->tex->width0, srf->tex->height0,
168 &srf->transfer);
172 srf->mapping_pipe = pipe;
177 xa_surface_unmap(struct xa_surface *srf)
179 if (srf->transfer) {
180 struct pipe_context *pipe = srf->mapping_pipe;
182 pipe->transfer_unmap(pipe, srf->transfer);
183 srf->transfer = NULL;
196 if (ctx->srf) {
197 if (ctx->srf->texture == dst->tex)
200 pipe_surface_reference(&ctx->srf, NULL);
209 ctx->srf = ctx->pipe->create_surface(ctx->pipe, dst->tex, &srf_templ);
210 if (!ctx->srf)
236 renderer_copy_prepare(ctx, ctx->srf, src->tex,
307 if (ctx->srf->format == PIPE_FORMAT_L8_UNORM)
326 renderer_bind_destination(ctx, ctx->srf);