summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-03-04 13:56:22 +1000
committerMarge Bot <eric+marge@anholt.net>2021-03-12 05:05:51 +0000
commit267d216bcbe42b5a678b0629e7d6e23e71becd76 (patch)
tree3c498d652e0f49316ec3d7d76449c99e20a1c367
parent9f0fd85474fa8fc5158f09d5899664eb615eee24 (diff)
draw: add interface to notify renderer of the current view index
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>
-rw-r--r--src/gallium/auxiliary/draw/draw_vbuf.h5
1 files changed, 5 insertions, 0 deletions
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
@@ -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.
*/