summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-09-25 12:02:33 +0800
committerChia-I Wu <[email protected]>2014-09-26 21:15:55 +0800
commit18cbd3cc3414bca77edc26d0e009b8acbf551cba (patch)
tree731f1332deafce8cda3bec3bdc5d30b17296f576 /src/gallium/drivers/ilo/ilo_render.h
parente3451552d23b7b656bafde5c4cf63e86b87137f0 (diff)
ilo: make ilo_render_emit_flush() direct
Remove emit_flush() and ILO_RENDER_FLUSH indirections. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_render.h18
1 files changed, 6 insertions, 12 deletions
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);
@@ -173,15 +170,6 @@ ilo_render_emit_draw(struct ilo_render *render,
}
/**
- * 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.
*/
static inline void
@@ -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 */