trace: Don't immediately destroy the pipe's sampler view in the trace driver.
authorAlex Corscadden <alexc@vmware.com>
Tue, 17 Aug 2010 20:45:31 +0000 (13:45 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 21 Aug 2010 08:45:43 +0000 (09:45 +0100)
commitce3a07c392fb0532f18dcb2d582b41a3f6bf198c
treea60a614492e00753ed234bda807114ebd63c1454
parent29dde59ea718f70209788bcc3eaf1c3dd7c2ca69
trace: Don't immediately destroy the pipe's sampler view in the trace driver.

The trace driver's implementation of sampler_view_destroy was calling
directly into the underlying pipe's sampler_view_destroy implementation.
This causes problems for pipes that keep references to sampler views
even after the state tracker has released them.  Instead, we'll simply
drop the trace driver's reference to the pipe's sampler view.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/trace/tr_context.c