Skip to content

Commit 1538fd1

Browse files
committed
Fix a typo when calculating tessCoordY in NGG compaction mode
The tessCoordY is mistakenly written with tessCoordX, leading to wrong value of tessCoordY when NGG compaction mode is turned on. This issue is found by TessMark.
1 parent 4a90a56 commit 1538fd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgc/patch/NggPrimShader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3290,7 +3290,7 @@ Value *NggPrimShader::runPartEs(ArrayRef<Argument *> args, Value *position) {
32903290
tessCoordX = createPhi({{newTessCoordX, uncompactVertexBlock}, {tessCoordX, exportVertexBlock}});
32913291

32923292
if (newTessCoordY)
3293-
tessCoordX = createPhi({{newTessCoordY, uncompactVertexBlock}, {tessCoordY, exportVertexBlock}});
3293+
tessCoordY = createPhi({{newTessCoordY, uncompactVertexBlock}, {tessCoordY, exportVertexBlock}});
32943294

32953295
assert(newRelPatchId);
32963296
relPatchId = createPhi({{newRelPatchId, uncompactVertexBlock}, {relPatchId, exportVertexBlock}});

0 commit comments

Comments
 (0)