swr: [rasterizer core] track whether GS outputs viewport array index
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 14 Jun 2016 16:25:02 +0000 (10:25 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 23 Jun 2016 15:50:55 +0000 (10:50 -0500)
So we can skip the index gather in PA.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/state.h

index 29048f10ae4e9c3a6137cc2100e7c090c9194835..bfa9929e0b4e8ef392433d11c6efe076f2f8dda1 100644 (file)
@@ -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