gallium: add a drawid to pipe_draw_info
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 29 Dec 2015 22:00:05 +0000 (17:00 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 30 Dec 2015 21:55:56 +0000 (16:55 -0500)
This will allow the state tracker to inform the driver where in a
broken-up multidraw we currently are. This can then be passed into the
vertex shader.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/include/pipe/p_state.h

index 6bdf03a8b2b50411933c5571853ebf70934f71f7..84633633f55a65063159891457e65d00bc261828 100644 (file)
@@ -587,6 +587,8 @@ struct pipe_draw_info
    unsigned start_instance; /**< first instance id */
    unsigned instance_count; /**< number of instances */
 
+   unsigned drawid; /**< id of this draw in a multidraw */
+
    unsigned vertices_per_patch; /**< the number of vertices per patch */
 
    /**