summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-09-25 12:10:00 +0800
committerChia-I Wu <[email protected]>2014-09-26 21:15:55 +0800
commit0afc17ea4986288c3ca3359242585997a11a1255 (patch)
tree2009d8336ed3dc6bfe38dab57e34cf3303bdb5a0 /src/gallium/drivers/ilo/ilo_render.h
parent18cbd3cc3414bca77edc26d0e009b8acbf551cba (diff)
ilo: make ilo_render_emit_query() direct
Remove emit_query() and ILO_RENDER_QUERY 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.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render.h b/src/gallium/drivers/ilo/ilo_render.h
index 6012e6e43b3..42c7015d4b4 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_QUERY,
ILO_RENDER_RECTLIST,
};
@@ -63,9 +62,6 @@ struct ilo_render {
void (*emit_draw)(struct ilo_render *render,
const struct ilo_state_vector *vec);
- void (*emit_query)(struct ilo_render *render,
- struct ilo_query *q, uint32_t offset);
-
void (*emit_rectlist)(struct ilo_render *render,
const struct ilo_blitter *blitter);
@@ -169,16 +165,6 @@ ilo_render_emit_draw(struct ilo_render *render,
render->emit_draw(render, vec);
}
-/**
- * Emit PIPE_CONTROL or MI_STORE_REGISTER_MEM to save register values.
- */
-static inline void
-ilo_render_emit_query(struct ilo_render *render,
- struct ilo_query *q, uint32_t offset)
-{
- render->emit_query(render, q, offset);
-}
-
static inline void
ilo_render_emit_rectlist(struct ilo_render *render,
const struct ilo_blitter *blitter)
@@ -204,4 +190,12 @@ ilo_render_get_flush_len(const struct ilo_render *render);
void
ilo_render_emit_flush(struct ilo_render *render);
+int
+ilo_render_get_query_len(const struct ilo_render *render,
+ unsigned query_type);
+
+void
+ilo_render_emit_query(struct ilo_render *render,
+ struct ilo_query *q, uint32_t offset);
+
#endif /* ILO_RENDER_H */