Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a typo when calculating tessCoordY in NGG compaction mode
Browse files Browse the repository at this point in the history
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.
amdrexu committed Nov 18, 2023
1 parent b91f572 commit 7182de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgc/patch/NggPrimShader.cpp
Original file line number Diff line number Diff line change
@@ -3290,7 +3290,7 @@ Value *NggPrimShader::runPartEs(ArrayRef<Argument *> args, Value *position) {
tessCoordX = createPhi({{newTessCoordX, uncompactVertexBlock}, {tessCoordX, exportVertexBlock}});

if (newTessCoordY)
tessCoordX = createPhi({{newTessCoordY, uncompactVertexBlock}, {tessCoordY, exportVertexBlock}});
tessCoordY = createPhi({{newTessCoordY, uncompactVertexBlock}, {tessCoordY, exportVertexBlock}});

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

0 comments on commit 7182de4

Please sign in to comment.