draw: add interface to notify renderer of the current view index
authorDave Airlie <airlied@redhat.com>
Thu, 4 Mar 2021 03:56:22 +0000 (13:56 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Mar 2021 05:05:51 +0000 (05:05 +0000)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9399>

src/gallium/auxiliary/draw/draw_vbuf.h

index 6e737ae..57b247e 100644 (file)
@@ -100,6 +100,11 @@ struct vbuf_render {
    void (*set_primitive)( struct vbuf_render *, enum pipe_prim_type prim );
 
    /**
+    * Notify the renderer of the current view index.
+    */
+   void (*set_view_index)( struct vbuf_render *, unsigned view_index );
+
+   /**
     * Draw indexed primitives.  Note that indices are ushort.  The driver
     * must complete this call, if necessary splitting the index list itself.
     */