mesa/src
Vinson Lee e0eefe5999
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
gfxstream: codegen: drop const from let-param scalar cast
Let-parameters (e.g. hasRasterization, hasTessellation for
VkGraphicsPipelineCreateInfo) are local variables initialized by
reading a value from the stream. The codegen was creating them
with isConst=True, which caused streamPrimitive() to emit a cast
like:

    hasRasterization = (const uint32_t)vkStream->getBe32();

The const qualifier on a scalar rvalue cast result is discarded
and triggers -Werror=ignored-qualifiers once that flag is enabled
for Soong compatibility, breaking the build:

    src/gfxstream/guest/vulkan_enc/goldfish_vk_marshaling_guest.cpp:
    In function 'void gfxstream::vk::unmarshal_VkGraphicsPipelineCreateInfo(
    VulkanStreamGuest*, VkStructureType, VkGraphicsPipelineCreateInfo*)':
    goldfish_vk_marshaling_guest.cpp:4202:28: error: type qualifiers
    ignored on cast result type [-Werror=ignored-qualifiers]
     4202 |         hasRasterization = (const uint32_t)vkStream->getBe32();
          |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    goldfish_vk_marshaling_guest.cpp:4207:27: error: type qualifiers
    ignored on cast result type [-Werror=ignored-qualifiers]
     4207 |         hasTessellation = (const uint32_t)vkStream->getBe32();
          |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1plus: some warnings being treated as errors

Mark the let-param as non-const since it is a local that gets
assigned.

Fixes: 190ce8280f ("meson: Add Soong compatibility compiler flags to Vulkan drivers")
Assisted-by: Claude Code (Opus 4.7)
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Gurchetan Singh <gurchetan.singh.foss@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41763>
2026-05-23 06:54:37 +00:00
..
amd radv: validate drirc option names at compile time 2026-05-21 14:26:28 +00:00
android_stub android_stub: purge unused log utils 2026-05-01 20:23:23 +00:00
asahi util: pass a struct to driParseConfigFiles() 2026-05-19 19:51:45 +00:00
broadcom Uprev Piglit to 6fd29fe44f8857b876a67bee962919635f22ecc8 2026-05-20 21:37:44 +00:00
c11
compiler spirv: Stop warning about ignored invalid ArrayStride decorations 2026-05-23 04:39:46 +00:00
drm-shim drm-shim: fix shim on GLX 2026-04-14 12:06:10 +00:00
egl egl/dri2: require valid render fd before advertising EGL_WL_bind_wayland_display 2026-05-13 16:16:48 +00:00
etnaviv Uprev Piglit to 6fd29fe44f8857b876a67bee962919635f22ecc8 2026-05-20 21:37:44 +00:00
freedreno freedreno: Add support for A704 2026-05-22 20:14:35 +00:00
gallium zink: Query external memory handle type compatibility 2026-05-22 18:39:19 +00:00
gbm gbm: Replace VER_MIN with common MIN2 2026-04-30 13:00:03 +00:00
getopt
gfxstream gfxstream: codegen: drop const from let-param scalar cast 2026-05-23 06:54:37 +00:00
glx glx/windows: Drop static from driwindowsCreateScreen() 2026-05-18 13:33:35 +00:00
gtest
imagination util: pass a struct to driParseConfigFiles() 2026-05-19 19:51:45 +00:00
imgui imgui: update copy and port all tools using it 2026-04-30 10:59:45 +00:00
intel anv, brw: Use previous shader VUE map for FS input layout when available 2026-05-23 05:17:37 +00:00
kosmickrisp kk: Support VK_KHR_unified_image_layouts 2026-05-21 09:59:38 +00:00
loader util: pass a struct to driParseConfigFiles() 2026-05-19 19:51:45 +00:00
mesa nir: remove ffma_old 2026-05-19 18:13:42 +00:00
microsoft util: pass a struct to driParseConfigFiles() 2026-05-19 19:51:45 +00:00
nouveau nak: optimize iadds with an uniform operand in iadds of address calculations 2026-05-20 17:23:33 +00:00
panfrost panvk/csf: Inline the SPD addr helpers 2026-05-22 19:54:53 +00:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool pps: Re-emit time clock_sync more regularly 2026-05-06 21:37:15 +00:00
util intel: switch shader hash to 64bit value 2026-05-22 15:05:30 +00:00
virtio meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
vulkan meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
x11 meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
.clang-format intel: add Jay 2026-04-10 18:21:21 +00:00
meson.build gallium/dril: Don't use gbm if there is no gbm configured 2026-02-17 08:24:02 +00:00