From e2e7fce6e9e7df52b6d66af13b6f2d4bb8c28855 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 21 May 2026 18:09:09 +0200 Subject: [PATCH] radv: rename radv_zero_vram to vk_zero_vram More common and this implicitly enables this for Path Of Exile and X4 Foundations. Though, zero VRAM allocs is already the default in AMDGPU, so that doesn't change anything in practice (except for very old kernels). Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_drirc_gen.py | 6 ++--- src/util/00-radv-defaults.conf | 42 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/amd/vulkan/radv_drirc_gen.py b/src/amd/vulkan/radv_drirc_gen.py index b0a3dfb29b8..04739030ea0 100644 --- a/src/amd/vulkan/radv_drirc_gen.py +++ b/src/amd/vulkan/radv_drirc_gen.py @@ -23,6 +23,9 @@ def declare_options(): B("vk_x11_ignore_suboptimal", False, "Force the X11 WSI to never report VK_SUBOPTIMAL_KHR"), + B("vk_zero_vram", False, + "Initialize to zero all VRAM allocations", + c_name="zero_vram"), B("radv_disable_aniso_single_level", False, "Disable anisotropic filtering for single level images", c_name="disable_aniso_single_level"), @@ -74,9 +77,6 @@ def declare_options(): B("radv_tex_non_uniform", False, "Always mark texture sample operations as non-uniform.", c_name="tex_non_uniform"), - B("radv_zero_vram", False, - "Initialize to zero all VRAM allocations", - c_name="zero_vram"), B("radv_wait_for_vm_map_updates", False, "Wait for VM MAP updates at allocation time to mitigate use-before-alloc", c_name="wait_for_vm_map_updates"), diff --git a/src/util/00-radv-defaults.conf b/src/util/00-radv-defaults.conf index 97fbfead76b..0b38f65874c 100644 --- a/src/util/00-radv-defaults.conf +++ b/src/util/00-radv-defaults.conf @@ -39,7 +39,7 @@ Application bugs worked around in this file: - - @@ -63,7 +63,7 @@ Application bugs worked around in this file: @@ -95,12 +95,12 @@ Application bugs worked around in this file: @@ -114,11 +114,11 @@ Application bugs worked around in this file: - - - @@ -153,7 +153,7 @@ Application bugs worked around in this file: - @@ -163,7 +163,7 @@ Application bugs worked around in this file: 256MiB to workaround bad VRAM memory management. --> - @@ -295,15 +295,15 @@ Application bugs worked around in this file: - - - - - - - - - -