Module: Mesa
Branch: main
Commit: 3a46181fe0b022a8695c00da8c5ee2d322207452
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a46181fe0b022a8695c00da8c5ee2d322207452

Author: Erik Faye-Lund <erik.faye-l...@collabora.com>
Date:   Wed Nov 15 10:17:51 2023 +0100

zink: do not handle PIPE_SWIZZLE_NONE

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 <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26192>

---

 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");
    }

Reply via email to