summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-07-12 17:04:44 -0600
committerTim Rowley <[email protected]>2016-07-20 10:22:15 -0500
commit036301596477a4b6b54e8e3f4ecf051860cbc7c3 (patch)
treeb35c02bf6545b1db2793f899c507f16ffb0fab03 /src/gallium/drivers/swr
parentefdaf5fa3e74ca4f3d9217dc6955aef6dc698a68 (diff)
swr: [rasterizer core] ensure adjacent topologies use the cut-aware PA
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/pa.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/pa.h b/src/gallium/drivers/swr/rasterizer/core/pa.h
index 64932af6145..2b8110f4c70 100644
--- a/src/gallium/drivers/swr/rasterizer/core/pa.h
+++ b/src/gallium/drivers/swr/rasterizer/core/pa.h
@@ -1159,14 +1159,11 @@ struct PA_FACTORY
if ((IsIndexedT::value && IsCutIndexEnabledT::value && (
topo == TOP_TRIANGLE_STRIP || topo == TOP_POINT_LIST ||
topo == TOP_LINE_LIST || topo == TOP_LINE_STRIP ||
- topo == TOP_TRIANGLE_LIST || topo == TOP_LINE_LIST_ADJ ||
- topo == TOP_LISTSTRIP_ADJ || topo == TOP_TRI_LIST_ADJ ||
- topo == TOP_TRI_STRIP_ADJ)) ||
+ topo == TOP_TRIANGLE_LIST)) ||
// non-indexed draws with adjacency topologies must use cut-aware PA until we add support
// for them in the optimized PA
- (!IsIndexedT::value && (
- topo == TOP_LINE_LIST_ADJ || topo == TOP_LISTSTRIP_ADJ || topo == TOP_TRI_LIST_ADJ || topo == TOP_TRI_STRIP_ADJ)))
+ (topo == TOP_LINE_LIST_ADJ || topo == TOP_LISTSTRIP_ADJ || topo == TOP_TRI_LIST_ADJ || topo == TOP_TRI_STRIP_ADJ))
{
memset(&indexStore, 0, sizeof(indexStore));
uint32_t numAttribs = state.feNumAttributes;