From df9cbe431eeb7ba996d4f4b9b13f79d6d69ef6d7 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 22 Jan 2024 10:28:31 +0100 Subject: [PATCH] zink: drop duplicate assignment to obj->alignment The value resource_object_create obj->alignment is set again in allocate_bo and the assignment uses a few more tests there. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/zink/zink_resource.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 49268b29ee7..b6d0e47d2cd 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -1452,7 +1452,6 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t case 1: return obj; } } - obj->alignment = reqs.alignment; if (!update_alloc_info_flags(screen, templ, user_mem, &reqs, &alloc_info)) goto fail1;