struct pipe_surface *
-trace_surf_create(struct trace_resource *tr_res,
+trace_surf_create(struct trace_context *tr_ctx,
+ struct trace_resource *tr_res,
struct pipe_surface *surface)
{
struct trace_surface *tr_surf;
goto error;
memcpy(&tr_surf->base, surface, sizeof(struct pipe_surface));
+ tr_surf->base.context = &tr_ctx->base;
pipe_reference_init(&tr_surf->base.reference, 1);
tr_surf->base.texture = NULL;
struct trace_resource *tr_res);
struct pipe_surface *
-trace_surf_create(struct trace_resource *tr_res,
- struct pipe_surface *surface);
+trace_surf_create(struct trace_context *tr_ctx,
+ struct trace_resource *tr_res,
+ struct pipe_surface *surface);
void
trace_surf_destroy(struct trace_surface *tr_surf);