mesa/src/amd/common
Samuel Pitoiset 07d9fc574c ac/spm: implement the new derived SPM chunk for performance counters
This is the new method to add performance counters to RGP captures.
This will be used to add the new RGP 2.6 counters too.

The previous SPM code will be deprecated at some point but it's hard
to support all generations in one batch. So, I will implement this
step by step.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39013>
2025-12-22 09:48:59 +01:00
..
nir ac/gpu_info: add some more flags to ac_cu_info 2025-12-22 07:34:46 +00:00
virtio ac/info: get vm_always_valid support through ac_linux_drm 2025-11-20 10:21:47 +00:00
.clang-format amd: import libdrm_amdgpu ioctl wrappers 2024-11-25 21:03:41 -05:00
ac_binary.c ac/gpu_info: move some CU information into separate struct ac_cu_info 2025-12-22 07:34:44 +00:00
ac_binary.h radv: only call radv_should_use_wgp_mode() once 2025-10-15 13:37:48 +01:00
ac_cmdbuf.c ac,radv,radeonsi: add functions to initialize tracked regs 2025-12-17 15:09:25 +00:00
ac_cmdbuf.h ac,radv,radeonsi: add tracked register macros to common code 2025-12-17 15:09:26 +00:00
ac_cmdbuf_cp.c ac: document RELEASE_MEM limitation with PS_DONE/CS_DONE on gfx6-11 2025-11-25 21:17:35 +00:00
ac_cmdbuf_cp.h amd,radv,radeonsi: add ac_emit_cp_release_mem() 2025-10-23 08:29:27 +00:00
ac_cmdbuf_sdma.c ac,radv: add ac_emit_sdma_copy_t2t_sub_window() 2025-11-17 11:29:24 +00:00
ac_cmdbuf_sdma.h ac,radv: add ac_emit_sdma_copy_t2t_sub_window() 2025-11-17 11:29:24 +00:00
ac_debug.c radv: Avoid calls to strlen when parsing umr output to speed up hang progressing 2025-08-07 06:44:41 +00:00
ac_debug.h ac: Add VCN IB parser 2024-09-23 19:25:08 +00:00
ac_descriptors.c ac/descriptors: account for num_storage_samples for gfx10 2025-12-18 10:45:49 +00:00
ac_descriptors.h amd: constify struct radeon_surf 2025-10-29 12:50:44 +00:00
ac_drm_fourcc.h ac/surface: add radeonsi exported modifiers to supported list 2025-09-15 09:39:19 +00:00
ac_formats.c ac,radeonsi: add ac_is_reduction_mode_supported() 2024-07-10 07:57:42 +00:00
ac_formats.h ac,radeonsi: add ac_is_reduction_mode_supported() 2024-07-10 07:57:42 +00:00
ac_gather_context_rolls.c treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
ac_gpu_info.c amd: add and use ac_cu_info::has_vtx_format_alpha_adjust_bug 2025-12-22 07:34:48 +00:00
ac_gpu_info.h amd: add and use ac_cu_info::has_vtx_format_alpha_adjust_bug 2025-12-22 07:34:48 +00:00
ac_hw_stage.h
ac_ib_parser.c ac/parse_ib: Replace the parameter list with ac_ib_parser 2024-03-19 16:08:13 +00:00
ac_linux_drm.c ac: update amdgpu_drm.h for uq metadata query info 2025-12-04 16:34:20 +00:00
ac_linux_drm.h ac: update amdgpu_drm.h for uq metadata query info 2025-12-04 16:34:20 +00:00
ac_msgpack.c ac: remove unused code 2024-12-26 10:12:43 +00:00
ac_msgpack.h ac: remove unused code 2024-12-26 10:12:43 +00:00
ac_null_device.c ac/gpu_info: add some more flags to ac_cu_info 2025-12-22 07:34:46 +00:00
ac_null_device.h amd, radv: create null device without winsys 2025-11-06 13:53:07 +00:00
ac_parse_ib.c ac/parse_ib: Implement VCN dec message parsing 2025-11-25 19:17:12 +00:00
ac_perfcounter.c ac/spm: adjust configuration of some GPU blocks 2025-12-22 09:47:58 +01:00
ac_perfcounter.h ac/perfcounter: add GCEA block description on GFX10-11 2025-12-22 09:47:29 +01:00
ac_pm4.c amd,radv,radeonsi: add ac_pm4_emit_commands() 2025-10-23 08:29:24 +00:00
ac_pm4.h amd,radv,radeonsi: add ac_pm4_emit_commands() 2025-10-23 08:29:24 +00:00
ac_rgp.c ac/spm: implement the new derived SPM chunk for performance counters 2025-12-22 09:48:59 +01:00
ac_rgp.h ac/rgp: update dumping queue event records to the capture 2023-11-13 08:53:09 +00:00
ac_rgp_elf_object_pack.c treewide: Replace calling to function ALIGN with align 2025-11-12 21:58:40 +00:00
ac_rtld.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
ac_rtld.h all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08:00
ac_shader_args.c ac: Don't include full nir.h anymore. 2025-02-12 22:33:07 +01:00
ac_shader_args.h radv: declare a new user SGPR for dynamic descriptors 2025-10-14 15:34:43 +00:00
ac_shader_debug_info.h amd: Add ac_shader_debug_info 2024-11-11 08:39:13 +00:00
ac_shader_util.c amd: add and use ac_cu_info::has_vtx_format_alpha_adjust_bug 2025-12-22 07:34:48 +00:00
ac_shader_util.h amd: add and use ac_cu_info::has_vtx_format_alpha_adjust_bug 2025-12-22 07:34:48 +00:00
ac_shadowed_regs.c winsys/amdgpu: enable userq reg shadowing for gfx11.5 2025-11-23 19:44:07 +00:00
ac_shadowed_regs.h winsys/amdgpu: enable userq reg shadowing for gfx11.5 2025-11-23 19:44:07 +00:00
ac_spm.c ac/spm: implement the new derived SPM chunk for performance counters 2025-12-22 09:48:59 +01:00
ac_spm.h ac/spm: implement the new derived SPM chunk for performance counters 2025-12-22 09:48:59 +01:00
ac_sqtt.c ac: fix potential overflows 2025-07-04 15:26:38 +00:00
ac_sqtt.h radv: replace radeon_cmdbuf by ac_cmdbuf completely 2025-10-08 18:00:15 +00:00
ac_surface.c amd: rename most GFX115x definitions for released chips 2025-12-03 13:29:07 +00:00
ac_surface.h ac/surface: pass all ac_compute_surface info via ac_surf_config, not radeon_surf 2025-10-29 12:50:44 +00:00
ac_surface_meta_address_test.c amd/common: rename ac_fake_hw_db.h -> ac_surface_test.h 2025-11-06 13:53:07 +00:00
ac_surface_modifier_test.c amd/common: rename ac_fake_hw_db.h -> ac_surface_test.h 2025-11-06 13:53:07 +00:00
ac_surface_test.h ac/gpu_info: move some CU information into separate struct ac_cu_info 2025-12-22 07:34:44 +00:00
ac_uvd_dec.c ac/uvd: Add ac_uvd_alloc_stream_handle 2025-05-13 09:36:47 +00:00
ac_uvd_dec.h ac/uvd: Add ac_uvd_alloc_stream_handle 2025-05-13 09:36:47 +00:00
ac_vcn.h ac,radeonsi/vcn,radv/video: Drop signature param 2025-11-13 14:35:58 +00:00
ac_vcn_av1_default.h
ac_vcn_dec.c radeonsi/vcn: vcn5 av1 decoding context buffer fix 2025-07-18 16:45:42 +00:00
ac_vcn_dec.h ac/vcn_dec: Add av1_intrabc_workaround 2025-08-20 09:51:32 +00:00
ac_vcn_enc.c ac: Add ac_vcn_init_enc_cmds 2024-09-20 06:58:29 +00:00
ac_vcn_enc.h radeonsi/vcn: Fix AV1 bidir compound encode with order_hint disabled 2025-11-05 09:44:04 +00:00
ac_vcn_enc_av1_default_cdf.h ac,radeonsi: move vcn enc av1 default cdf file to common 2023-09-14 07:51:24 +00:00
ac_vcn_vp9_default.h amd: move vp9 probs table to common code. 2025-06-09 20:46:03 +00:00
amd_family.c amd: rename most GFX115x definitions for released chips 2025-12-03 13:29:07 +00:00
amd_family.h amd: rename most GFX115x definitions for released chips 2025-12-03 13:29:07 +00:00
gfx10_format_table.h amd/common: only pass gfx_level to ac_get_gfx10_format_table() 2024-05-22 08:31:39 +00:00
gfx10_format_table.py ac/gfx10_format_table: Use new names for 422 subsampled formats 2025-10-14 09:33:28 +00:00
meson.build amd/common: link with libamdgpu_addrlib 2025-12-22 07:34:41 +00:00
sid.h winsys/amdgpu: fwm packet pre-emption for gfx 11.5 2025-11-23 19:44:06 +00:00
sid_tables.py