summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-01-22 00:06:32 +0100
committerMarek Olšák <[email protected]>2014-01-28 01:39:10 +0100
commit62d55c0a2d96cf482f955bc841006c2ac1e0d867 (patch)
tree98b3ac31dfc3168696aab979c299cfc0698a2434 /src/gallium/drivers/radeonsi/si_state.c
parentc53b8de335fd1106f0a0fbefde9b288a72004484 (diff)
radeonsi: use queries from r600g
Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index a269335b6b9..8396ef51210 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -3028,6 +3028,19 @@ static boolean si_dma_copy(struct pipe_context *ctx,
return FALSE;
}
+static void si_set_occlusion_query_state(struct pipe_context *ctx, bool enable)
+{
+ /* XXX Turn this into a proper state. Right now the queries are
+ * enabled in draw_vbo, which snoops r600_common_context to see
+ * if any occlusion queries are active. */
+}
+
+static void si_need_gfx_cs_space(struct pipe_context *ctx, unsigned num_dw,
+ bool include_draw_vbo)
+{
+ si_need_cs_space((struct si_context*)ctx, num_dw, include_draw_vbo);
+}
+
void si_init_state_functions(struct si_context *sctx)
{
int i;
@@ -3090,6 +3103,8 @@ void si_init_state_functions(struct si_context *sctx)
sctx->b.b.create_surface = r600_create_surface;
sctx->b.b.surface_destroy = r600_surface_destroy;
sctx->b.dma_copy = si_dma_copy;
+ sctx->b.set_occlusion_query_state = si_set_occlusion_query_state;
+ sctx->b.need_gfx_cs_space = si_need_gfx_cs_space;
sctx->b.b.draw_vbo = si_draw_vbo;
}