trace: fix incorrect trace_surface::base.context pointer
authorBrian Paul <brianp@vmware.com>
Fri, 15 Feb 2013 17:36:32 +0000 (10:36 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Feb 2013 18:11:34 +0000 (11:11 -0700)
commit82d62cf04f3c585ba324fcef16417fbee4a3d220
treef743480e4c38f77a4e26b57a294c71454d257c8b
parent3b0de75c4dab869f2e312c4627cd69fd0b40d7aa
trace: fix incorrect trace_surface::base.context pointer

When a trace_surface object is created in trace_surf_create() we
weren't correctly setting the surface's context pointer.  Instead of
it being the trace context, it was the wrapped driver's context.
This caused things to blow up sometimes during surface deallocation.

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