summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_texture.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-02-22 23:40:53 +0100
committerMarek Olšák <[email protected]>2017-02-25 00:03:09 +0100
commitd17b8d08a3e51df7ff218adf54600b34fa015a4f (patch)
tree6c5af2d90f06ede498c6982ad5ec4dacadd03667 /src/gallium/drivers/trace/tr_texture.h
parent4a883966c1f74f43afc145d2c3d27af7b8c5e01a (diff)
trace: remove pipe_resource wrapping
Not needed. ddebug does the same thing. The limitation is that drivers can only use pipe_resource::screen through pipe_resource_reference. This unbreaks trace, because pipe_context uploaders aren't wrapped, so trace doesn't understand buffers returned by them. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/trace/tr_texture.h')
-rw-r--r--src/gallium/drivers/trace/tr_texture.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/src/gallium/drivers/trace/tr_texture.h b/src/gallium/drivers/trace/tr_texture.h
index af508511567..e5dfc53fdb0 100644
--- a/src/gallium/drivers/trace/tr_texture.h
+++ b/src/gallium/drivers/trace/tr_texture.h
@@ -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)
return NULL;
- (void)trace_resource(surface->texture);
return (struct trace_surface *)surface;
}
@@ -119,22 +97,13 @@ trace_transfer(struct pipe_transfer *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