summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace/tr_texture.h')
-rw-r--r--src/gallium/drivers/trace/tr_texture.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_texture.h b/src/gallium/drivers/trace/tr_texture.h
index 168cefd53d6..67433b507d4 100644
--- a/src/gallium/drivers/trace/tr_texture.h
+++ b/src/gallium/drivers/trace/tr_texture.h
@@ -67,6 +67,7 @@ trace_texture(struct trace_screen *tr_scr,
{
if(!texture)
return NULL;
+ assert(tr_scr);
assert(texture->screen == &tr_scr->base);
return (struct trace_texture *)texture;
}
@@ -78,6 +79,7 @@ trace_surface(struct trace_texture *tr_tex,
{
if(!surface)
return NULL;
+ assert(tr_tex);
assert(surface->texture == &tr_tex->base);
return (struct trace_surface *)surface;
}
@@ -89,6 +91,7 @@ trace_transfer(struct trace_texture *tr_tex,
{
if(!transfer)
return NULL;
+ assert(tr_tex);
assert(transfer->texture == &tr_tex->base);
return (struct trace_transfer *)transfer;
}