mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 20:20:38 +02:00
ac/gpu_info: add has_zerovram_support
AMDGPU 3.59.0+ clears VRAM on allocations. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34896>
This commit is contained in:
parent
2f2a5d31bd
commit
4b16de5e0d
2 changed files with 4 additions and 0 deletions
|
|
@ -1446,6 +1446,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;
|
||||
|
||||
if (info->gfx_level >= GFX12) {
|
||||
/* Gfx12 doesn't use pc_lines and pbb_max_alloc_count. */
|
||||
} else if (info->gfx_level >= GFX11) {
|
||||
|
|
@ -2096,6 +2098,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_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++) {
|
||||
|
|
|
|||
|
|
@ -241,6 +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_tmz_support;
|
||||
bool has_trap_handler_support;
|
||||
bool kernel_has_modifiers;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue