Lines Matching refs:ctx
134 static void r600_copy_to_staging_texture(struct pipe_context *ctx, struct r600_transfer *rtransfer)
136 struct r600_common_context *rctx = (struct r600_common_context*)ctx;
142 r600_copy_region_with_blit(ctx, dst, 0, 0, 0, 0,
147 rctx->dma_copy(ctx, dst, 0, 0, 0, 0, src, transfer->level,
152 static void r600_copy_from_staging_texture(struct pipe_context *ctx, struct r600_transfer *rtransfer)
154 struct r600_common_context *rctx = (struct r600_common_context*)ctx;
163 r600_copy_region_with_blit(ctx, dst, transfer->level,
169 rctx->dma_copy(ctx, dst, transfer->level,
320 struct pipe_context *ctx = &rctx->b;
322 if (ctx == rscreen->aux_context)
325 ctx->flush_resource(ctx, &rtex->resource.b.b);
326 ctx->flush(ctx, NULL, 0);
328 if (ctx == rscreen->aux_context)
471 struct pipe_context *ctx,
484 ctx = threaded_context_unwrap_sync(ctx);
485 rctx = (struct r600_common_context*)(ctx ? ctx : rscreen->aux_context);
1149 bool r600_init_flushed_depth_texture(struct pipe_context *ctx,
1208 *flushed_depth_texture = (struct r600_texture *)ctx->screen->resource_create(ctx->screen, &resource);
1283 void *r600_texture_transfer_map(struct pipe_context *ctx,
1290 struct r600_common_context *rctx = (struct r600_common_context*)ctx;
1375 if (!r600_init_flushed_depth_texture(ctx, &resource, &staging_depth)) {
1382 struct pipe_resource *temp = ctx->screen->resource_create(ctx->screen, &resource);
1389 r600_copy_region_with_blit(ctx, temp, 0, 0, 0, 0, texture, level, box);
1390 rctx->blit_decompress_depth(ctx, (struct r600_texture*)temp, staging_depth,
1402 if (!r600_init_flushed_depth_texture(ctx, texture, &staging_depth)) {
1408 rctx->blit_decompress_depth(ctx, rtex, staging_depth,
1431 staging = (struct r600_texture*)ctx->screen->resource_create(ctx->screen, &resource);
1445 r600_copy_to_staging_texture(ctx, trans);
1468 void r600_texture_transfer_unmap(struct pipe_context *ctx,
1471 struct r600_common_context *rctx = (struct r600_common_context*)ctx;
1478 ctx->resource_copy_region(ctx, texture, transfer->level,
1483 r600_copy_from_staging_texture(ctx, rtransfer);