diff options
author | Chia-I Wu <[email protected]> | 2013-04-16 16:36:03 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-04-26 16:16:43 +0800 |
commit | e6186b0769b2a42a69ca2c5e9ef014b5961ba05d (patch) | |
tree | 12b35e7f4cddab323fbc6163216a955080bcaf5a /src/gallium/drivers/ilo/ilo_3d.h | |
parent | 5b310f62300ecbb2549578cbcc36267083fdccea (diff) |
ilo: hook up pipe context 3D functions
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_3d.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_3d.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_3d.h b/src/gallium/drivers/ilo/ilo_3d.h index ba098cb451c..c9b7bc9ea85 100644 --- a/src/gallium/drivers/ilo/ilo_3d.h +++ b/src/gallium/drivers/ilo/ilo_3d.h @@ -30,7 +30,42 @@ #include "ilo_common.h" +struct ilo_3d_pipeline; struct ilo_context; +struct ilo_cp; +struct ilo_query; + +/** + * 3D context. + */ +struct ilo_3d { + struct ilo_cp *cp; + + bool new_batch; + uint32_t shader_cache_seqno; + + struct { + struct pipe_query *query; + unsigned mode; + } render_condition; + + struct ilo_3d_pipeline *pipeline; +}; + +struct ilo_3d * +ilo_3d_create(struct ilo_cp *cp, int gen, int gt); + +void +ilo_3d_destroy(struct ilo_3d *hw3d); + +void +ilo_3d_new_cp_batch(struct ilo_3d *hw3d); + +void +ilo_3d_pre_cp_flush(struct ilo_3d *hw3d); + +void +ilo_3d_post_cp_flush(struct ilo_3d *hw3d); void ilo_init_3d_functions(struct ilo_context *ilo); |