mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
trace: Prevent from internal calls from pipe_context to pipe_screen from being traced.
This commit is contained in:
parent
9dcb956a06
commit
74d649d9a9
1 changed files with 6 additions and 0 deletions
|
|
@ -999,11 +999,14 @@ trace_context_destroy(struct pipe_context *_pipe)
|
|||
struct pipe_context *
|
||||
trace_context_create(struct pipe_context *pipe)
|
||||
{
|
||||
struct trace_screen *tr_scr;
|
||||
struct trace_context *tr_ctx;
|
||||
|
||||
if(!debug_get_bool_option("GALLIUM_TRACE", FALSE))
|
||||
return pipe;
|
||||
|
||||
tr_scr = trace_screen(pipe->screen);
|
||||
|
||||
tr_ctx = CALLOC_STRUCT(trace_context);
|
||||
if(!tr_ctx)
|
||||
return NULL;
|
||||
|
|
@ -1055,5 +1058,8 @@ trace_context_create(struct pipe_context *pipe)
|
|||
|
||||
tr_ctx->pipe = pipe;
|
||||
|
||||
/* We don't want to trace the pipe calls */
|
||||
pipe->screen = tr_scr->screen;
|
||||
|
||||
return &tr_ctx->base;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue