SPV: Use heuristic to avoid geometry multi-streams when possible.

This commit is contained in:
John Kessenich 2016-03-03 22:29:11 -07:00
parent 2ac71dfb78
commit f2d8a5c53f
4 changed files with 14 additions and 6 deletions

View file

@ -1524,6 +1524,11 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
}
break;
case EOpEmitStreamVertex:
case EOpEndStreamPrimitive:
intermediate.setMultiStream();
break;
default:
break;
}
@ -4050,6 +4055,8 @@ void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
if (id == "stream") {
requireProfile(loc, ~EEsProfile, "selecting output stream");
publicType.qualifier.layoutStream = value;
if (value > 0)
intermediate.setMultiStream();
return;
}
break;