mesa/src
Christian Gmeiner 651cf906e2 isaspec: Use %g format for float display to ensure round-trip fidelity
Change the TYPE_FLOAT display format from %f to %g with sufficient
significant digits (%.5g for f16, %.9g for f32), so that float
immediates round-trip correctly through disassembly and assembly.

The %f format loses precision for small values: f16 0x0001 (denormal
~5.96e-8) displays as 0.000000, which parses back as 0x0000. The %g
format uses the minimum significant digits per IEEE 754 and strips
trailing zeros, using scientific notation when needed. Whole-number
values use %.1f to keep them unambiguously float (e.g. "1.0").

Update the etnaviv PEST grammar and the freedreno ir3 lexer/parser to
accept the new output formats (scientific notation, stripped zeros).

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40207>
2026-03-04 22:42:27 +00:00
..
amd radv,radeonsi: PA_SC_BINNER changes for gfx12 2026-03-04 21:14:56 +00:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi agx: use common code vote lowering 2026-02-25 17:29:29 +00:00
broadcom broadcom/ci: update expected results 2026-03-04 09:33:35 +00:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler isaspec: Use %g format for float display to ensure round-trip fidelity 2026-03-04 22:42:27 +00:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl os: Add support for GNU/HURD compilation and use of dri swrast/llvmpipe. 2026-02-17 08:24:02 +00:00
etnaviv isaspec: Use %g format for float display to ensure round-trip fidelity 2026-03-04 22:42:27 +00:00
freedreno isaspec: Use %g format for float display to ensure round-trip fidelity 2026-03-04 22:42:27 +00:00
gallium radeonsi: rename si_shader_gs/vs -> si_shader_gs/vs_legacy 2026-03-04 21:14:56 +00:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: enable VK_EXT_primitives_generated_query 2026-02-23 17:41:30 +00:00
glx os: Add support for GNU/HURD compilation and use of dri swrast/llvmpipe. 2026-02-17 08:24:02 +00:00
gtest
imagination pvr: suppress VkDescriptorSetLayoutBindingFlagsCreateInfo ignored warn 2026-03-02 15:06:38 +00:00
imgui
intel anv: Set max outstanding ray queries to 1024 2026-03-04 21:45:14 +00:00
kosmickrisp kk,llvmpipe,nouveau: remove lower_vector_cmp from scalar backends 2026-03-04 19:50:27 +00:00
loader util,loader: silence asprintf() unused result warnings 2026-02-07 10:07:22 +00:00
mesa i915,nv30,softpipe,svga,mesa/st: remove lower_vector_cmp for tgsi backends 2026-03-04 19:50:27 +00:00
microsoft dozen: Resolve Seg Fault in dzn_physical_device_create 2026-02-17 15:19:37 +00:00
nouveau nvk: Remove unused cmd.tls_space_needed 2026-02-25 22:42:07 +00:00
panfrost bifrost: use nir_lower_alu_width to lower vector comparisons 2026-03-04 19:50:28 +00:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool pps/meson: minor refactor for pps_deps 2025-11-08 18:39:00 -08:00
util anv: add drirc option to workaround missing application barriers on typed/untyped data 2026-03-04 20:40:59 +00:00
virtio ci/venus: skip broken drm display tests 2026-03-04 20:20:14 +00:00
vulkan vulkan/cmd_queue: Don't explicitly set struct members to NULL 2026-03-03 10:19:31 +00:00
x11 os: Add support for GNU/HURD compilation and use of dri swrast/llvmpipe. 2026-02-17 08:24:02 +00:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build gallium/dril: Don't use gbm if there is no gbm configured 2026-02-17 08:24:02 +00:00