summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-12-29 17:00:05 -0500
committerIlia Mirkin <[email protected]>2015-12-30 16:55:56 -0500
commitdaaf0bdf46bc5084bdba1ee5d42d994f30a65841 (patch)
treefd5596105910afea4057aa3477c634880ae331df /src
parent87b4e4e29fb2013ce2f0770f39113069bd16057c (diff)
gallium: add a drawid to pipe_draw_info
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 <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/include/pipe/p_state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 6bdf03a8b2b..84633633f55 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -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 */
/**