diff options
author | Chia-I Wu <[email protected]> | 2014-09-22 12:34:05 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-22 12:51:42 +0800 |
commit | d69faf851fff5d41086c9940b2fcf2aa72c40e60 (patch) | |
tree | 2ac6eb887dcfd5d3db183d813fea7436979e5bd4 /src/gallium/drivers/ilo/ilo_context.h | |
parent | 295a3a3ff0c93ac81b73d756e2148cde5f42caf3 (diff) |
ilo: handle conditional rendering in the context
Conditional rendering is not limited to draw_vbo(). Move the support to
ilo_context, and replace ilo_3d_pass_render_condition() by
ilo_skip_rendering().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_context.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.h b/src/gallium/drivers/ilo/ilo_context.h index 92c2c6ca718..ce6050dee19 100644 --- a/src/gallium/drivers/ilo/ilo_context.h +++ b/src/gallium/drivers/ilo/ilo_context.h @@ -60,6 +60,12 @@ struct ilo_context { struct u_upload_mgr *uploader; struct ilo_state_vector state_vector; + + struct { + struct pipe_query *query; + bool condition; + unsigned mode; + } render_condition; }; static inline struct ilo_context * @@ -71,4 +77,7 @@ ilo_context(struct pipe_context *pipe) void ilo_init_context_functions(struct ilo_screen *is); +bool +ilo_skip_rendering(struct ilo_context *ilo); + #endif /* ILO_CONTEXT_H */ |