mesa/src/asahi
Zan Dobersek 7fd5f76393 nir/lower_vars_to_scratch: calculate threshold-limited variable size separately
ir3's lowering of variables to scratch memory has to treat 8-bit values as
16-bit ones when comparing such value's size against the given threshold
since those values are handled through 16-bit half-registers. But those
values can still use natural 8-bit size and alignment for storing inside
scratch memory.

nir_lower_vars_to_scratch now accepts two size-and-alignment functions,
one used for calculating the variable size and the other for calculating
the size and alignment needed for storing inside scratch memory. Non-ir3
uses of this pass can just duplicate the currently-used function. ir3
provides a separate variable-size function that special-cases 8-bit types.

Signed-off-by: Zan Dobersek <zdobersek@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29875>
2024-08-07 14:32:28 +00:00
..
clc format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
compiler nir/lower_vars_to_scratch: calculate threshold-limited variable size separately 2024-08-07 14:32:28 +00:00
drm-shim asahi: add broken bits of unstable Linux UAPI 2024-06-14 15:44:30 +00:00
genxml asahi: offset buffer images in software 2024-07-26 18:40:47 +00:00
layout ail: add ail_get_level_size_B helper 2024-07-26 18:40:47 +00:00
lib asahi: don't count helper invs in pipeline stats query 2024-08-06 11:48:04 -04:00
vulkan hk: add Vulkan driver for Apple GPUs 2024-07-26 18:40:47 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
.editorconfig asahi: Add .editorconfig for CL files 2024-01-10 08:44:37 -04:00
meson.build hk: add Vulkan driver for Apple GPUs 2024-07-26 18:40:47 +00:00