From e6186b0769b2a42a69ca2c5e9ef014b5961ba05d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 16 Apr 2013 16:36:03 +0800 Subject: ilo: hook up pipe context 3D functions --- src/gallium/drivers/ilo/ilo_3d.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/gallium/drivers/ilo/ilo_3d.h') 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); -- cgit v1.2.3