Files
raven/scripts
SoapyMan bb892c7c73 fix: generate the Vulkan chain table under any compiler locale
Availability was decided by matching the structure names quoted in the
compiler diagnostics. GCC quotes them with «» outside the English locales,
so nothing matched, the trimming loop made no progress and generation
failed on VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV,
which the headers provide only under VK_ENABLE_BETA_EXTENSIONS.

The same matching also mistook a spelling suggestion for a missing name and
silently dropped VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_BARRIER_FEATURES_NV
from the table.

Read the preprocessed header instead, so the table lists what the headers
really provide whatever language the compiler speaks, and keep one syntax
check so incomplete structures still fail here.

Checked by generating the table with ru_RU.UTF-8 and LC_ALL=C (identical
output, 367 structures, present barrier kept, present metering excluded)
and by building native with the regenerated table.

Assisted-by: opencode:deepseek-v4.1-flash-free
AI-Scope: diagnosed the locale-dependent diagnostics parsing and the
suggestion false positive in scripts/generate-vulkan-chains.py, and wrote
the preprocessor-based availability check plus the size syntax check.
2026-10-30 00:47:58 +03:00
..