trace: add context pointer sanity checking
authorBrian Paul <brianp@vmware.com>
Fri, 15 Feb 2013 17:42:32 +0000 (10:42 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Feb 2013 18:11:34 +0000 (11:11 -0700)
commit2ef530cf68f7b837db6750e7a4b1ba9e71aad062
treeebb021cefd1833f4ddf632b20a49a8bece819cff
parent82d62cf04f3c585ba324fcef16417fbee4a3d220
trace: add context pointer sanity checking

To help catch mixed up context pointer bugs in the future, add a
trace_context_check() function and some new assertions.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/trace/tr_context.c
src/gallium/drivers/trace/tr_context.h
src/gallium/drivers/trace/tr_texture.c