Skip to content

Commit 2ced6e2

Browse files
committed
Actually, HsCpOut can contain SV_POSITION too, which would not be allowed to be flipped
1 parent 11f7bb2 commit 2ced6e2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tools/clang/lib/SPIRV/SpirvEmitter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14886,9 +14886,7 @@ SpirvInstruction *SpirvEmitter::invertYIfRequested(SpirvInstruction *position,
1488614886
bool supportsInvertY = spvContext.isVS() || spvContext.isGS() ||
1488714887
spvContext.isDS() || spvContext.isMS();
1488814888

14889-
assert(supportsInvertY && "invertY is only supported in VS/DS/GS/MS");
14890-
14891-
if (spirvOptions.invertY) {
14889+
if (spirvOptions.invertY && supportsInvertY) {
1489214890
const auto oldY = spvBuilder.createCompositeExtract(
1489314891
astContext.FloatTy, position, {1}, loc, range);
1489414892
const auto newY = spvBuilder.createUnaryOp(

0 commit comments

Comments
 (0)