mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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>
This commit is contained in:
parent
29dde59ea7
commit
ce3a07c392
1 changed files with 1 additions and 1 deletions
|
|
@ -885,7 +885,7 @@ trace_sampler_view_destroy(struct pipe_context *_pipe,
|
|||
trace_dump_arg(ptr, pipe);
|
||||
trace_dump_arg(ptr, view);
|
||||
|
||||
pipe->sampler_view_destroy(pipe, view);
|
||||
pipe_sampler_view_reference(&tr_view->sampler_view, NULL);
|
||||
|
||||
trace_dump_call_end();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue