diff options
author | Tim Rowley <[email protected]> | 2016-06-14 10:25:02 -0600 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-06-23 10:50:55 -0500 |
commit | 35935ca4f2b204c497cc416f7ff82250235ccd9a (patch) | |
tree | 24cf0e749e775e8c50401864ae13e42d3b74b508 /src/gallium | |
parent | 2d80295a6eb6e83d1cc84a009f14ad3dba8e96f8 (diff) |
swr: [rasterizer core] track whether GS outputs viewport array index
So we can skip the index gather in PA.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/state.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |