mesa/src/panfrost
Boris Brezillon 4477daf957 panfrost: Rework the way we compute thread info
Rework the way we compute thread info to make it mostly GPU-agnostic
outside of the kmod backend.

The new logic is based on the following information extracted from
GPU registers:

- mximum number of threads per core
- maximum number ot threads per workgroup
- number of registers per core

If the GPU doesn't provide this information (registers are zero), we
pick the per-arch defaults we had in panfrost_max_thread_count().

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26358>
2024-03-01 10:42:43 +00:00
..
ci Uprev Piglit to e9316bcd12544aaf7e753ce37fe50d64165d9598 2024-01-29 18:27:07 +00:00
compiler panfrost: support multi-sampled image load/store 2024-02-26 19:01:32 +00:00
drm-shim panfrost: fix panfrost drm-shim 2024-01-22 09:36:47 +00:00
ds panfrost: Make pan_perf panfrost_device agnostic 2024-01-23 16:32:09 +00:00
include panfrost: prepare pan_image_view for multiplanar formats 2023-08-07 19:35:12 +00:00
lib panfrost: Rework the way we compute thread info 2024-03-01 10:42:43 +00:00
midgard panfrost: support multi-sampled image load/store 2024-02-26 19:01:32 +00:00
perf panfrost: Make pan_perf panfrost_device agnostic 2024-01-23 16:32:09 +00:00
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools panfrost: Make panfrost_texfeatures.c panfrost_device agnostic 2024-01-23 16:32:09 +00:00
util panfrost: Rework the way we compute thread info 2024-03-01 10:42:43 +00:00
vulkan panvk: enable VK_EXT_headless_surface on all platforms except Windows 2024-02-06 20:32:38 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00