mesa/src/panfrost
Eric Guo 352a8d6beb
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
pan/compiler: Clamp fp16 ldexp exponent range
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>
2026-05-04 17:59:18 +00:00
..
ci pan/compiler: Fix WaRaR hazard in pressure scheduler 2026-04-30 18:26:09 +00:00
clc panvk,panfrost: Pass inputs and info to postprocess 2026-04-30 18:26:12 +00:00
compiler pan/compiler: Clamp fp16 ldexp exponent range 2026-05-04 17:59:18 +00:00
drm-shim panfrost: SPDX everything 2026-01-20 20:49:33 +00:00
ds panfrost: Add a few missing license blocks 2026-01-20 20:49:33 +00:00
genxml pan/va/disasm: Align FAU printing 2026-04-22 08:31:01 +00:00
lib pan/kmod: fix double syncop count sum when populating vm_bind syncs 2026-04-30 20:20:08 +00:00
libpan panvk: Implement vkCmdFillBuffer with panlib kernels 2026-04-27 08:19:20 +00:00
model pan/model: Expose prod_id and rev functions 2026-04-14 10:12:00 +02:00
perf panfrost: Add a few missing license blocks 2026-01-20 20:49:33 +00:00
shared panfrost: drop email from ancient copyright lines 2026-02-23 20:04:12 +00:00
tools pan: Add support for 64 bit gpu_id 2026-04-09 09:49:20 +00:00
vulkan panvk: Remove pan_optimize_nir call 2026-04-30 18:26:12 +00:00
.clang-format pan: Add some missing ForEachMacros to .clang-format 2026-02-03 13:26:12 +00:00
meson.build pan: Add a central libpanfrost_compiler library 2025-12-02 21:00:30 +00:00