mesa/src/panfrost
Mary Guillemard b53d98eb41 pan/lib: Rewrite npot divisor algorithm
It was based on reverse engineering and inaccurate.

This also get ride of fp64 usage and will allow us to use it in OpenCL C
shaders for indirect/indexed draw.

On the full 32-bit range, this fixes ~10 millions inaccurate results.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Fixes: 467ae0d39d ("panfrost: Factor out panfrost_compute_magic_divisor")
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Olivia Lee <olivia.lee@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35490>
2025-06-14 17:19:28 +02:00
..
ci panfrost/ci: add new half-float fails 2025-06-12 08:56:21 +00:00
clc pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
compiler panvk: implement non uniform indexing except for input attachments 2025-06-13 19:02:19 +00:00
drm-shim panfrost: Fix group priorities in drm-shim 2025-02-05 13:30:29 +00:00
ds pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
genxml panvk: Add tests for ls tracking in cs_maybe 2025-06-13 08:28:30 +00:00
lib pan/lib: Rewrite npot divisor algorithm 2025-06-14 17:19:28 +02:00
libpan libpan: Add indirect dispatch implementation 2025-06-06 12:58:21 +00:00
midgard pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
perf pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
shared pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
tools pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
util panvk: Add FS read support for PrimitiveID 2025-06-06 13:54:57 +00:00
vulkan panvk: advertise descriptor indexing on valhall 2025-06-13 19:02:19 +00:00
.clang-format panforst: Update ForEachMacros for pan/bi 2025-06-03 14:28:06 +00:00
meson.build panfrost: Move genxml out of pan/lib 2025-05-09 09:33:38 +00:00