mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 20:28:05 +02:00
Fix OpenCL-CTS error in `math_brute_force/test_bruteforce -w ldexp` Valhall LDEXP.v2f16 takes a 16-bit exponent, while NIR ldexp uses a 32-bit exponent. Truncating large exponents can flip overflow into underflow or leave huge 16-bit exponents to hardware behavior that does not match OpenCL's expected signed infinity/zero results. Clamp the exponent to a range sufficient to overflow or underflow all fp16 values before lowering to ldexp16_pan. Signed-off-by: Eric Guo <eric.guo@nxp.com> Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41234> |
||
|---|---|---|
| .. | ||
| ci | ||
| clc | ||
| compiler | ||
| drm-shim | ||
| ds | ||
| genxml | ||
| lib | ||
| libpan | ||
| model | ||
| perf | ||
| shared | ||
| tools | ||
| vulkan | ||
| .clang-format | ||
| meson.build | ||