mesa/src/amd/common
Samuel Pitoiset fac44c0ca0 ac/surface: fix selecting preferred alignments for HiZ/HiS on GFX12
VK_MESA_image_alignment_control is used by vkd3d-proton to set
optimal alignments for images. Though, the preferred alignment was
only applied to the surface (or the stencil aspect) but not to the HiZ
surface due to the NULL check.

This caused rendering issues because swizzle modes didn't match.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12831
Fixes: 079f55d405 ("radv: advertise VK_MESA_image_alignment_control on GFX12")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34322>
2025-04-02 06:47:59 +00:00
..
nir ac/nir/cull: cull small prims using a point-triangle intersection test 2025-04-01 16:12:22 +00:00
virtio ac/virtio: add virtio-only AMDGPU_GEM_CREATE flag 2025-01-16 12:24:33 +00:00
.clang-format amd: import libdrm_amdgpu ioctl wrappers 2024-11-25 21:03:41 -05:00
ac_binary.c amd: add initial common code for gfx12 2024-05-11 22:14:05 -04:00
ac_binary.h ac,radeonsi,winsyses: switch to SPDX-License-Identifier: MIT 2023-05-24 21:48:19 +00:00
ac_cmdbuf.c ac/cmdbuf: rework CB/DB cache controls for better perf 2025-03-06 21:10:49 +00:00
ac_cmdbuf.h ac/cmdbuf: rework CB/DB cache controls for better perf 2025-03-06 21:10:49 +00:00
ac_debug.c amd: add initial common code for gfx12 2024-05-11 22:14:05 -04:00
ac_debug.h ac: Add VCN IB parser 2024-09-23 19:25:08 +00:00
ac_descriptors.c ac/descriptors: allow to configure DCC for buffer descriptors 2025-01-30 08:18:22 +00:00
ac_descriptors.h ac/descriptors: allow to configure DCC for buffer descriptors 2025-01-30 08:18:22 +00:00
ac_drm_fourcc.h ac/surf: add more modifiers to gfx12 supported list 2024-12-16 07:35:06 +00:00
ac_fake_hw_db.h ac/fake_hw_db: deobfuscate GPU name strings 2025-01-29 07:20:02 +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 ac: Improve context roll readability 2024-03-19 16:08:14 +00:00
ac_gpu_info.c ac,radv: add a workaround for a hw bug with primitive restart on GFX10-GFX10.3 2025-03-10 08:44:31 +00:00
ac_gpu_info.h ac,radv: add a workaround for a hw bug with primitive restart on GFX10-GFX10.3 2025-03-10 08:44:31 +00:00
ac_hw_stage.h amd: Move ac_hw_stage to its own file 2023-07-03 21:12:45 +00:00
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 amd: add ac_drm_device_get_cookie 2025-01-22 14:55:56 +00:00
ac_linux_drm.h amd: add ac_drm_device_get_cookie 2025-01-22 14:55:56 +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_parse_ib.c ac/parse_ib: Parse VCN DYNAMIC_REFLIST_BUFFER 2025-03-29 08:50:49 +00:00
ac_perfcounter.c ac/perfcounter: fix buffer overflow 2024-11-08 13:31:02 +00:00
ac_perfcounter.h ac/perfcounter: compute the number of global instances of TCP,SQ,GL1C and GL2C 2023-09-14 14:17:19 +00:00
ac_pm4.c amd: use a valid size for ac_pm4_state allocation 2024-07-22 10:09:34 +00:00
ac_pm4.h ac,radeonsi import PM4 state from RadeonSI 2024-06-06 20:26:47 +00:00
ac_rgp.c ac/rgp: bump instrumentation API version to 1.5 2025-03-14 08:20:57 +00: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 amd: Use align64 instead of ALIGN for 64 bit value parameter 2024-01-03 22:02:17 +00:00
ac_rtld.c ac/llvm: implement WA in nir to llvm 2024-06-20 13:14:33 +00:00
ac_rtld.h ac/llvm: implement WA in nir to llvm 2024-06-20 13:14:33 +00: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 ac/nir: split local_invocation_ids to 3 separate VGPR inputs 2025-01-02 17:36:55 +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 radeonsi: fix PS prolog not counting used fragcoord VGPRs correctly 2025-01-29 07:19:40 +00:00
ac_shader_util.h radeonsi: fix PS prolog not counting used fragcoord VGPRs correctly 2025-01-29 07:19:40 +00:00
ac_shadowed_regs.c ac,radv,radeonsi: use PM4 for shadowed registers 2025-03-28 20:50:22 +00:00
ac_shadowed_regs.h ac,radv,radeonsi: use PM4 for shadowed registers 2025-03-28 20:50:22 +00:00
ac_spm.c ac/spm: do not abort when the SPM BO is too small 2024-10-29 18:33:17 +00:00
ac_spm.h ac/spm: do not abort when the SPM BO is too small 2024-10-29 18:33:17 +00:00
ac_sqtt.c ac/sqtt: fix registers programming for GFX12 2025-03-14 08:20:57 +00:00
ac_sqtt.h ac/sqtt: fix registers programming for GFX12 2025-03-14 08:20:57 +00:00
ac_surface.c ac/surface: fix selecting preferred alignments for HiZ/HiS on GFX12 2025-04-02 06:47:59 +00:00
ac_surface.h ac/nir: Move surface related NIR functions to separate file. 2025-02-12 22:33:07 +01:00
ac_surface_meta_address_test.c ac: add 'polaris12' gpu to ac_fake_hw_db 2024-11-08 13:31:02 +00:00
ac_surface_modifier_test.c amd: update addrlib 2024-12-26 21:02:21 +00:00
ac_uvd_dec.h radeonsi/uvd: Set decode target swizzle mode on GFX9 2025-01-17 08:53:05 +00:00
ac_vcn.h ac/vcn: allow sq signature package to be skipped 2024-11-29 10:01:49 +10:00
ac_vcn_av1_default.h ac/radeonsi: add av1 defaults header file from radeonsi 2023-06-16 05:53:44 +00:00
ac_vcn_dec.c ac/vcn_dec: Fix AV1 film grain on VCN5 2025-02-07 13:13:45 +00:00
ac_vcn_dec.h radeonsi/vcn: Add UDT support for VCN5 2025-02-26 13:07:10 +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: Enable VCN4 AV1 encode WA 2024-11-01 14:05: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
amd_family.c radv: add experimental support for AMD BC-250 board 2025-03-04 08:07:31 +00:00
amd_family.h radv: add experimental support for AMD BC-250 board 2025-03-04 08:07:31 +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,radeonsi,winsyses: switch to SPDX-License-Identifier: MIT 2023-05-24 21:48:19 +00:00
meson.build ac/nir: Move surface related NIR functions to separate file. 2025-02-12 22:33:07 +01:00
sid.h ac,radeonsi: define all SDMA DCC fields & use them, enable compressed writes 2025-03-06 21:10:54 +00:00
sid_tables.py ac,radeonsi,winsyses: switch to SPDX-License-Identifier: MIT 2023-05-24 21:48:19 +00:00