From 2e2270ff14b8049c245c5333c48ad5d308e421e0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 4 Jul 2021 18:10:33 -0400 Subject: [PATCH] asahi: Remove spurious varying assignment Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 2948b1c989b..c25743f0403 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -835,24 +835,18 @@ agx_update_shader(struct agx_context *ctx, struct agx_compiled_shader **out, if (binary.size) { struct agx_device *dev = agx_device(ctx->base.screen); compiled->bo = agx_bo_create(dev, - ALIGN_POT(binary.size, 256) + ((3 * packed_varying_sz) + 20), + ALIGN_POT(binary.size, 256) + (3 * packed_varying_sz), AGX_MEMORY_TYPE_SHADER); memcpy(compiled->bo->ptr.cpu, binary.data, binary.size); /* TODO: Why is the varying descriptor duplicated 3x? */ unsigned offs = ALIGN_POT(binary.size, 256); - unsigned unk_offs = offs + 0x40; for (unsigned copy = 0; copy < 3; ++copy) { memcpy(((uint8_t *) compiled->bo->ptr.cpu) + offs, packed_varyings, packed_varying_sz); offs += packed_varying_sz; } - uint16_t *map = (uint16_t *) (((uint8_t *) compiled->bo->ptr.cpu) + unk_offs); - *map = 0x140; // 0x0100 with one varying - - - compiled->varyings = compiled->bo->ptr.gpu + ALIGN_POT(binary.size, 256); }