freedreno/ir3: add ctx->mem_to_mem()
[mesa.git] / src / gallium / drivers / trace / tr_texture.h
index e48b7b39e2405e3dbb09af8e30764044251bbdaf..e5dfc53fdb062b00729f0b98892d55541c52650c 100644 (file)
@@ -43,17 +43,6 @@ struct tr_list
    struct tr_list *prev;
 };
 
-
-struct trace_resource
-{
-   struct pipe_resource base;
-
-   struct pipe_resource *resource;
-
-   struct tr_list list;
-};
-
-
 struct trace_surface
 {
    struct pipe_surface base;
@@ -85,22 +74,11 @@ struct trace_transfer
 };
 
 
-static inline struct trace_resource *
-trace_resource(struct pipe_resource *texture)
-{
-   if(!texture)
-      return NULL;
-   (void)trace_screen(texture->screen);
-   return (struct trace_resource *)texture;
-}
-
-
 static inline struct trace_surface *
 trace_surface(struct pipe_surface *surface)
 {
-   if(!surface)
+   if (!surface)
       return NULL;
-   (void)trace_resource(surface->texture);
    return (struct trace_surface *)surface;
 }
 
@@ -117,24 +95,15 @@ trace_sampler_view(struct pipe_sampler_view *sampler_view)
 static inline struct trace_transfer *
 trace_transfer(struct pipe_transfer *transfer)
 {
-   if(!transfer)
+   if (!transfer)
       return NULL;
-   (void)trace_resource(transfer->resource);
    return (struct trace_transfer *)transfer;
 }
 
 
-struct pipe_resource *
-trace_resource_create(struct trace_screen *tr_scr,
-                     struct pipe_resource *texture);
-
-void
-trace_resource_destroy(struct trace_screen *tr_scr,
-                      struct trace_resource *tr_res);
-
 struct pipe_surface *
 trace_surf_create(struct trace_context *tr_ctx,
-                  struct trace_resource *tr_res,
+                  struct pipe_resource *tr_res,
                   struct pipe_surface *surface);
 
 void
@@ -142,7 +111,7 @@ trace_surf_destroy(struct trace_surface *tr_surf);
 
 struct pipe_transfer *
 trace_transfer_create(struct trace_context *tr_ctx,
-                     struct trace_resource *tr_res,
+                     struct pipe_resource *tr_res,
                      struct pipe_transfer *transfer);
 
 void