From: Tim Rowley Date: Tue, 14 Jun 2016 16:25:02 +0000 (-0600) Subject: swr: [rasterizer core] track whether GS outputs viewport array index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35935ca4f2b204c497cc416f7ff82250235ccd9a;p=mesa.git swr: [rasterizer core] track whether GS outputs viewport array index So we can skip the index gather in PA. Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/core/state.h b/src/gallium/drivers/swr/rasterizer/core/state.h index 29048f10ae4..bfa9929e0b4 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