diff options
author | Marek Olšák <[email protected]> | 2016-07-13 16:00:06 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-26 23:06:46 +0200 |
commit | 95c3025a4163128584900b8f377d299c8e707d17 (patch) | |
tree | 4e8a230f2239fca236b0ce51607edc994e119980 /src/gallium/drivers/ddebug/dd_pipe.h | |
parent | f7720948cca971606c90b96c67128b93737af09d (diff) |
ddebug: move all states into a separate structure
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug/dd_pipe.h')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_pipe.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gallium/drivers/ddebug/dd_pipe.h b/src/gallium/drivers/ddebug/dd_pipe.h index 69d5c4e2216..072e9ac9e20 100644 --- a/src/gallium/drivers/ddebug/dd_pipe.h +++ b/src/gallium/drivers/ddebug/dd_pipe.h @@ -74,11 +74,8 @@ struct dd_state } state; }; -struct dd_context +struct dd_draw_state { - struct pipe_context base; - struct pipe_context *pipe; - struct { struct dd_query *query; bool condition; @@ -115,10 +112,18 @@ struct dd_context struct pipe_viewport_state viewports[PIPE_MAX_VIEWPORTS]; float tess_default_levels[6]; - unsigned num_draw_calls; unsigned apitrace_call_number; }; +struct dd_context +{ + struct pipe_context base; + struct pipe_context *pipe; + + struct dd_draw_state draw_state; + unsigned num_draw_calls; +}; + struct pipe_context * dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe); |