From c54fdde1a418a14c19ff46fe48b6e2b259b4828b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 4 Nov 2024 14:56:46 -0400 Subject: [PATCH] libagx: drop dead code Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/shaders/tessellator.cl | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/asahi/lib/shaders/tessellator.cl b/src/asahi/lib/shaders/tessellator.cl index 4af2384e60a..dea8dbdab3f 100644 --- a/src/asahi/lib/shaders/tessellator.cl +++ b/src/asahi/lib/shaders/tessellator.cl @@ -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