ac/gpu_info: rename has_zerovram_support to has_default_zerovram_support

To avoid confusion between RADEON_FLAG_ZERO_VRAM and default VRAM
allocation clears since AMDGPU 3.59+.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35021>
This commit is contained in:
Samuel Pitoiset
2025-05-16 13:10:29 +02:00
committed by Marge Bot
parent d7099675b6
commit e345b03c89
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1447,7 +1447,8 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
info->has_stable_pstate = info->drm_minor >= 45;
info->has_zerovram_support = info->drm_minor >= 59;
/* AMDGPU 3.59+ clears VRAM on allocations by default. */
info->has_default_zerovram_support = info->drm_minor >= 59;
if (info->gfx_level >= GFX12) {
/* Gfx12 doesn't use pc_lines and pbb_max_alloc_count. */
@@ -2099,7 +2100,7 @@ void ac_print_gpu_info(const struct radeon_info *info, FILE *f)
info->fw_based_mcbp.csa_alignment);
}
fprintf(f, " has_zerovram_support = %u\n", info->has_zerovram_support);
fprintf(f, " has_default_zerovram_support = %u\n", info->has_default_zerovram_support);
fprintf(f, " has_tmz_support = %u\n", info->has_tmz_support);
fprintf(f, " has_trap_handler_support = %u\n", info->has_trap_handler_support);
for (unsigned i = 0; i < AMD_NUM_IP_TYPES; i++) {
+1 -1
View File
@@ -241,7 +241,7 @@ struct radeon_info {
bool has_stable_pstate;
/* Whether SR-IOV is enabled or amdgpu.mcbp=1 was set on the kernel command line. */
bool register_shadowing_required;
bool has_zerovram_support;
bool has_default_zerovram_support;
bool has_tmz_support;
bool has_trap_handler_support;
bool kernel_has_modifiers;