From 09ea05cf23fc6d116d18490569f13f010f790833 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 4 Jun 2026 13:58:22 +0200 Subject: [PATCH] rusticl: skip bindgen for pipe_shader_state_from_tgsi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bindgen up to at least 0.72.1 generates invalid code (see below) and that function is not used, so simply skip it. src/gallium/frontends/rusticl/rusticl_mesa_bindings.c:795:81: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] 795 | void pipe_shader_state_from_tgsi__extern(struct pipe_shader_state *state, const const struct tgsi_token *tokens) { pipe_shader_state_from_tgsi(state, tokens); } | ^~~~~ Backport-to: * Part-of: --- src/gallium/frontends/rusticl/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/rusticl/meson.build b/src/gallium/frontends/rusticl/meson.build index 80490152fc4..235eb75c2b5 100644 --- a/src/gallium/frontends/rusticl/meson.build +++ b/src/gallium/frontends/rusticl/meson.build @@ -328,6 +328,7 @@ rusticl_mesa_bindings = rust.bindgen( '--constified-enum-module', 'pipe_tex_wrap', '--allowlist-type', 'pipe_swizzle', '--constified-enum-module', 'pipe_swizzle', + '--blocklist-function', 'pipe_shader_state_from_tgsi', # rusticl C functions '--allowlist-function', 'rusticl_.*',