From 267d216bcbe42b5a678b0629e7d6e23e71becd76 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 4 Mar 2021 13:56:22 +1000 Subject: [PATCH] draw: add interface to notify renderer of the current view index Reviewed-by: Roland Scheidegger Acked-By: Mike Blumenkrantz Part-of: --- 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 6e737ae..57b247e 100644 --- a/src/gallium/auxiliary/draw/draw_vbuf.h +++ b/src/gallium/auxiliary/draw/draw_vbuf.h @@ -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. */ -- 2.7.4