mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 07:18:06 +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> |
||
|---|---|---|
| .. | ||
| bifrost | ||
| midgard | ||
| meson.build | ||
| pan_compiler.c | ||
| pan_compiler.h | ||
| pan_nir.h | ||
| pan_nir_collect_varyings.c | ||
| pan_nir_lower_bool_to_bitsize.c | ||
| pan_nir_lower_framebuffer.c | ||
| pan_nir_lower_fs_inputs.c | ||
| pan_nir_lower_fs_outputs.c | ||
| pan_nir_lower_helper_invocation.c | ||
| pan_nir_lower_image_index.c | ||
| pan_nir_lower_image_ms.c | ||
| pan_nir_lower_noperspective.c | ||
| pan_nir_lower_sample_position.c | ||
| pan_nir_lower_texel_buffer_index.c | ||
| pan_nir_lower_var_special.c | ||
| pan_nir_lower_vertex_id.c | ||
| pan_nir_lower_vs_outputs.c | ||
| pan_nir_lower_xfb.c | ||
| pan_nir_resize_varying_io.c | ||