[Mesa-dev] [PATCH] util/draw: draw_count not supported in util_draw_indirect()
brianp at vmware.com
Thu Feb 1 03:38:27 UTC 2018
So assert that and add a comment about it.
It would be a simple project for someone to add support for both
draw_count and the indirect_draw_count buffer.
src/gallium/auxiliary/util/u_draw.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_draw.c b/src/gallium/auxiliary/util/u_draw.c
index a7590f7..5e6393d 100644
@@ -138,8 +138,15 @@ util_draw_indirect(struct pipe_context *pipe,
const unsigned num_params = info_in->index_size ? 5 : 4;
+ * XXX we don't yet support the pipe_draw_indirect_info::draw_count
+ * value. Nor do we support fetching the draw count from the
+ * pipe_draw_indirect_info::indirect_draw_count buffer.
+ assert(info_in->indirect->draw_count == 1);
memcpy(&info, info_in, sizeof(info));
More information about the mesa-dev