summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-10-29 09:57:01 +0800
committerChia-I Wu <[email protected]>2014-11-06 10:43:53 +0800
commita1a701877a3160f7e076c3d62565c08cbf32e920 (patch)
treec63fe505298952f870a569fa0014e09fb0edb4c5 /src/gallium/drivers/ilo/ilo_render.h
parent9dd596c99f009258b964704f53ab97458a1ef733 (diff)
ilo: add ilo_render_emit_launch_grid()
ilo_render_emit_launch_grid() emits all the hardware states needed for a launch_grid() call. 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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render.h b/src/gallium/drivers/ilo/ilo_render.h
index 0cf1d0311b0..a85b2800fb1 100644
--- a/src/gallium/drivers/ilo/ilo_render.h
+++ b/src/gallium/drivers/ilo/ilo_render.h
@@ -30,6 +30,7 @@
#include "ilo_common.h"
+struct pipe_constant_buffer;
struct ilo_blitter;
struct ilo_builder;
struct ilo_query;
@@ -87,4 +88,17 @@ void
ilo_render_emit_draw(struct ilo_render *render,
const struct ilo_state_vector *vec);
+int
+ilo_render_get_launch_grid_len(const struct ilo_render *render,
+ const struct ilo_state_vector *vec);
+
+void
+ilo_render_emit_launch_grid(struct ilo_render *render,
+ const struct ilo_state_vector *vec,
+ const unsigned thread_group_offset[3],
+ const unsigned thread_group_dim[3],
+ unsigned thread_group_size,
+ const struct pipe_constant_buffer *input,
+ uint32_t pc);
+
#endif /* ILO_RENDER_H */