[Mesa-dev] [PATCH 11/14] swr: [rasterizer core] track whether GS outputs viewport array index

Tim Rowley timothy.o.rowley at intel.com
Fri Jun 17 19:25:51 UTC 2016


So we can skip the index gather in PA.
---
 src/gallium/drivers/swr/rasterizer/core/state.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/swr/rasterizer/core/state.h b/src/gallium/drivers/swr/rasterizer/core/state.h
index 29048f1..bfa9929 100644
--- a/src/gallium/drivers/swr/rasterizer/core/state.h
+++ b/src/gallium/drivers/swr/rasterizer/core/state.h
@@ -676,6 +676,9 @@ struct SWR_GS_STATE
     // geometry shader emits PrimitiveID
     bool emitsPrimitiveID;
 
+    // geometry shader emits ViewportArrayIndex
+    bool emitsViewportArrayIndex;
+
     // if true, geometry shader emits a single stream, with separate cut buffer.
     // if false, geometry shader emits vertices for multiple streams to the stream buffer, with a separate StreamID buffer
     // to map vertices to streams
-- 
1.9.1



More information about the mesa-dev mailing list