Mesa (master): draw: add interface to notify renderer of the current view index

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Mar 12 05:34:53 UTC 2021


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Mar  4 13:56:22 2021 +1000

draw: add interface to notify renderer of the current view index

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9399>

---

 src/gallium/auxiliary/draw/draw_vbuf.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/auxiliary/draw/draw_vbuf.h b/src/gallium/auxiliary/draw/draw_vbuf.h
index 6e737ae5b75..57b247eed19 100644
--- a/src/gallium/auxiliary/draw/draw_vbuf.h
+++ b/src/gallium/auxiliary/draw/draw_vbuf.h
@@ -99,6 +99,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.



More information about the mesa-commit mailing list