mesa/src/amd
Konstantin Seurer ae84d41d48
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
radv/meta: Rework saving/restoring state
The current approach of explicitly saving/restoring some states is
unnecessarily complicated and inefficient. For example, some meta OPs
that use memory fills/copies will have nested save/restores. This patch
is the first step towards avoiding unnecessary state re-emits around
meta OPs.

The changes are:
- Move radv_meta_saved_state to radv_cmd_buffer::state
- Add radv_meta_begin/end helpers that initialize radv_meta_saved_state
and restore states used by the meta OP
- Remove all explicit saves/restores, use the new helpers

radv_meta_begin/end is called inside the entrypoint and not some nested
helper function which means that state is only restored once per meta
OP.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39774>
2026-02-18 09:37:55 +01:00
..
addrlib amd: rename most GFX115x definitions for released chips 2025-12-03 13:29:07 +00:00
ci radv/ci: mark more WSI tests as flakes on NAVI21 2026-02-17 10:39:01 +00:00
common ac/nir/ngg: re-enable use of known compile-time GS connectivity 2026-02-18 01:29:37 +00:00
compiler aco/ra: create vectors for affinities of split definitions 2026-02-16 19:39:43 +00:00
drm-shim amd/drm-shim: add vega20 2026-01-08 09:30:54 +00:00
gmlib meson: Relax -Wmaybe-uninitialized errors 2025-09-16 06:16:20 +00:00
lanczoslib meson: Relax -Wmaybe-uninitialized errors 2025-09-16 06:16:20 +00:00
llvm ac/llvm: remove unused functions 2026-02-13 15:33:19 +00:00
registers amd: Rename GFX1103_R1/R2 to PHOENIX/2 2024-11-20 02:14:40 +00:00
vpelib amd/vpelib: Adding new wrapper for register profiling 2026-02-12 11:56:26 +00:00
vulkan radv/meta: Rework saving/restoring state 2026-02-18 09:37:55 +01:00
meson.build radv/tests: require drm-shim and use it instead of RADV_FORCE_FAMILY 2025-11-19 07:11:05 +00:00