mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-21 01:00:45 +01:00
libagx: simplify index patch expression
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
parent
5e4e8df95a
commit
6030b204d5
1 changed files with 3 additions and 6 deletions
|
|
@ -305,13 +305,10 @@ PatchIndexValue(private struct CHWTessellator *ctx, int index)
|
|||
return index + ctx->IndexPatchCtx.insidePointIndexDeltaToRealValue;
|
||||
}
|
||||
} else if (ctx->bUsingPatchedIndices2) {
|
||||
if (index >= ctx->IndexPatchCtx2.baseIndexToInvert) {
|
||||
if (index == ctx->IndexPatchCtx2.cornerCaseBadValue)
|
||||
return ctx->IndexPatchCtx2.cornerCaseReplacementValue;
|
||||
else
|
||||
return ctx->IndexPatchCtx2.indexInversionEndPoint - index;
|
||||
} else if (index == ctx->IndexPatchCtx2.cornerCaseBadValue) {
|
||||
if (index == ctx->IndexPatchCtx2.cornerCaseBadValue) {
|
||||
return ctx->IndexPatchCtx2.cornerCaseReplacementValue;
|
||||
} else if (index >= ctx->IndexPatchCtx2.baseIndexToInvert) {
|
||||
return ctx->IndexPatchCtx2.indexInversionEndPoint - index;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue