From 18cbd3cc3414bca77edc26d0e009b8acbf551cba Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 25 Sep 2014 12:02:33 +0800 Subject: ilo: make ilo_render_emit_flush() direct Remove emit_flush() and ILO_RENDER_FLUSH indirections. Signed-off-by: Chia-I Wu --- src/gallium/drivers/ilo/ilo_render.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_render.h') diff --git a/src/gallium/drivers/ilo/ilo_render.h b/src/gallium/drivers/ilo/ilo_render.h index 1334936194b..6012e6e43b3 100644 --- a/src/gallium/drivers/ilo/ilo_render.h +++ b/src/gallium/drivers/ilo/ilo_render.h @@ -39,7 +39,6 @@ struct ilo_state_vector; enum ilo_render_action { ILO_RENDER_DRAW, - ILO_RENDER_FLUSH, ILO_RENDER_QUERY, ILO_RENDER_RECTLIST, }; @@ -64,8 +63,6 @@ struct ilo_render { void (*emit_draw)(struct ilo_render *render, const struct ilo_state_vector *vec); - void (*emit_flush)(struct ilo_render *render); - void (*emit_query)(struct ilo_render *render, struct ilo_query *q, uint32_t offset); @@ -172,15 +169,6 @@ ilo_render_emit_draw(struct ilo_render *render, render->emit_draw(render, vec); } -/** - * Emit PIPE_CONTROL to flush all caches. - */ -static inline void -ilo_render_emit_flush(struct ilo_render *render) -{ - render->emit_flush(render); -} - /** * Emit PIPE_CONTROL or MI_STORE_REGISTER_MEM to save register values. */ @@ -210,4 +198,10 @@ ilo_render_invalidate_hw(struct ilo_render *render); void ilo_render_invalidate_builder(struct ilo_render *render); +int +ilo_render_get_flush_len(const struct ilo_render *render); + +void +ilo_render_emit_flush(struct ilo_render *render); + #endif /* ILO_RENDER_H */ -- cgit v1.2.3