From 3a46181fe0b022a8695c00da8c5ee2d322207452 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 15 Nov 2023 10:17:51 +0100 Subject: [PATCH] zink: do not handle PIPE_SWIZZLE_NONE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not a valid value for texture-views, whic is what we currently use it for... And it's not the same as an identity swizzle anyway, in the case we'd want to use it for something else in the future. Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/zink/zink_context.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h index 09348d95825..dfff0cd4a3f 100644 --- a/src/gallium/drivers/zink/zink_context.h +++ b/src/gallium/drivers/zink/zink_context.h @@ -264,7 +264,6 @@ zink_component_mapping(enum pipe_swizzle swizzle) case PIPE_SWIZZLE_W: return VK_COMPONENT_SWIZZLE_A; case PIPE_SWIZZLE_0: return VK_COMPONENT_SWIZZLE_ZERO; case PIPE_SWIZZLE_1: return VK_COMPONENT_SWIZZLE_ONE; - case PIPE_SWIZZLE_NONE: return VK_COMPONENT_SWIZZLE_IDENTITY; // ??? default: unreachable("unexpected swizzle"); }