libagx: drop dead code

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
Alyssa Rosenzweig 2024-11-04 14:56:46 -04:00 committed by Marge Bot
parent d00a504cb0
commit c54fdde1a4

View file

@ -329,15 +329,8 @@ static void
DefineIndex(private struct CHWTessellator *ctx, int index,
int indexStorageOffset)
{
int patched = PatchIndexValue(ctx, index);
if (ctx->mode == LIBAGX_TESS_MODE_WITH_COUNTS) {
global uint32_t *indices = (global uint32_t *)ctx->Index;
indices[indexStorageOffset] = ctx->index_bias + patched;
} else {
global uint16_t *indices = (global uint16_t *)ctx->Index;
indices[indexStorageOffset] = patched;
}
global uint32_t *indices = (global uint32_t *)ctx->Index;
indices[indexStorageOffset] = ctx->index_bias + PatchIndexValue(ctx, index);
}
static void