From a17d286dc44da3a828b073da2ca77e470a7764eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Mon, 24 Feb 2025 15:56:51 +0100 Subject: [PATCH] lavapipe: Change lvp_cmd_type to anonymous enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a build failure when using -Wenum-conversion. Signed-off-by: Corentin Noël Reviewed-by: Konstantin Seurer Part-of: --- src/gallium/frontends/lavapipe/lvp_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_private.h b/src/gallium/frontends/lavapipe/lvp_private.h index 5f375109e18..60cab80c56d 100644 --- a/src/gallium/frontends/lavapipe/lvp_private.h +++ b/src/gallium/frontends/lavapipe/lvp_private.h @@ -845,7 +845,7 @@ struct lvp_cmd_encode_as { VkGeometryTypeKHR geometry_type; }; -enum lvp_cmd_type { +enum { LVP_CMD_WRITE_BUFFER_CP = VK_CMD_TYPE_COUNT, LVP_CMD_DISPATCH_UNALIGNED, LVP_CMD_FILL_BUFFER_ADDR,