mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-13 11:00:32 +01:00
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> |
||
|---|---|---|
| .. | ||
| clc | ||
| glsl | ||
| isaspec | ||
| libcl | ||
| nir | ||
| rust | ||
| spirv | ||
| builtin_types.py | ||
| builtin_types_c.py | ||
| builtin_types_h.py | ||
| glsl_types.c | ||
| glsl_types.h | ||
| list.h | ||
| meson.build | ||
| shader_enums.c | ||
| shader_enums.h | ||
| shader_info.h | ||