Module: Mesa
Branch: master
Commit: daaf0bdf46bc5084bdba1ee5d42d994f30a65841
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=daaf0bdf46bc5084bdba1ee5d42d994f30a65841

Author: Ilia Mirkin <[email protected]>
Date:   Tue Dec 29 17:00:05 2015 -0500

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]>

---

 src/gallium/include/pipe/p_state.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/include/pipe/p_state.h 
b/src/gallium/include/pipe/p_state.h
index 6bdf03a..8463363 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 */
 
    /**

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to