mesa/src/nouveau/compiler
Christian Gmeiner e201d4fa77
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
compiler/rust: Move VecPair from NAK to shared compiler crate
Move the VecPair<A, B> data structure from NAK's ir.rs to the shared
compiler Rust crate so it can be reused by other backends.

The fields are private, and NAK's ir.rs (now in a different crate)
needs to read and mutate the inner Vecs. Add a_as_slice(..),
a_as_mut_slice(..), b_as_slice(..) and b_as_mut_slice(..), and update
NAK's SrcsAsSlice and DstsAsSlice impls to call them. Returning slices
keeps callers from changing the length of one side without the other,
which is what VecPair is built to prevent.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41435>
2026-05-13 22:32:44 +00:00
..
acorn nak: Fix some rusdoc warnings 2025-05-12 17:31:33 +00:00
latencies nak: avoid errors when generated code is empty 2025-12-20 00:13:19 +01:00
nak compiler/rust: Move VecPair from NAK to shared compiler crate 2026-05-13 22:32:44 +00:00
.editorconfig nak: Add initial stubs for rust code 2023-11-14 00:48:06 +00:00
meson.build meson: add rust_global_args for flags for all the rust compilations 2025-12-20 00:13:19 +01:00
nak.h nvk: Wire up ROOT_TABLE 2026-04-10 19:21:39 +00:00
nak_bindings.h nak: do not hide drm header on Android 2025-07-29 16:29:58 +00:00
nak_nir.c nak: handle nir_op_fmul_rtz 2026-04-30 15:42:40 +00:00
nak_nir_algebraic.py nak: add algebraic patterns to improve MUFU.F16 2026-04-02 01:10:57 +00:00
nak_nir_lower_cf.c nak/lower_cf: remove single src phis 2026-04-21 23:37:55 +00:00
nak_nir_lower_cmat.c nak: preserve fp_math_ctrl when lowering cmat 2026-03-26 13:15:50 +00:00
nak_nir_lower_fs_inputs.c nak: use fmul_rtz for NAK_INTERP_MODE_PERSPECTIVE 2026-04-30 15:42:40 +00:00
nak_nir_lower_gs_intrinsics.c nir: add and use block predecessor helpers 2026-04-08 15:06:32 +00:00
nak_nir_lower_image_addrs.c nir: Use nir_def_as_* in more places 2025-08-24 14:03:09 +00:00
nak_nir_lower_kepler_shared_atomics.c nir: only set fp_math_ctrl if meaningful 2026-02-18 14:04:22 +00:00
nak_nir_lower_non_uniform_ldcx.c nir: rename nir_src_parent_instr to nir_src_use_instr 2026-05-06 17:09:22 +00:00
nak_nir_lower_scan_reduce.c nak: Fix divergence test for redux availability 2025-09-26 18:07:04 +00:00
nak_nir_lower_tex.c nak: the MS location comes last in TLD, same spot as depth compare in TEX 2026-04-15 17:00:07 +00:00
nak_nir_lower_vtg_io.c nak: Move lowering of load_*_id to lower_vtg_io.c 2026-03-25 03:11:56 +00:00
nak_nir_mark_lcssa_invariants.c treewide: simplify nir_def_rewrite_uses_after 2025-08-01 15:34:24 +00:00
nak_nir_rematerialize_load_const.c nak: Report progress from nak_nir_rematerialize_load_const() 2026-03-17 16:11:38 +00:00
nak_private.h nak: add scalar tex encoding support 2026-04-14 17:48:04 +00:00