info->has_sparse_vm_mappings = info->gfx_level >= GFX7;
info->has_scheduled_fence_dependency = info->drm_minor >= 28;
info->has_gang_submit = info->drm_minor >= 49;
- info->mid_command_buffer_preemption_enabled = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION;
+ info->register_shadowing_required = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION;
info->has_tmz_support = has_tmz_support(dev, info, device_info.ids_flags);
info->kernel_has_modifiers = has_modifiers(fd);
info->uses_kernel_cu_mask = false; /* Not implemented in the kernel. */
fprintf(f, " has_stable_pstate = %u\n", info->has_stable_pstate);
fprintf(f, " has_scheduled_fence_dependency = %u\n", info->has_scheduled_fence_dependency);
fprintf(f, " has_gang_submit = %u\n", info->has_gang_submit);
- fprintf(f, " mid_command_buffer_preemption_enabled = %u\n",
- info->mid_command_buffer_preemption_enabled);
+ fprintf(f, " register_shadowing_required = %u\n", info->register_shadowing_required);
fprintf(f, " has_fw_based_shadowing = %u\n", info->has_fw_based_shadowing);
if (info->has_fw_based_shadowing) {
fprintf(f, " * shadow size: %u (alignment: %u)\n",
bool has_pcie_bandwidth_info;
bool has_stable_pstate;
/* Whether SR-IOV is enabled or amdgpu.mcbp=1 was set on the kernel command line. */
- bool mid_command_buffer_preemption_enabled;
+ bool register_shadowing_required;
bool has_tmz_support;
bool kernel_has_modifiers;
device->overallocation_disallowed = overallocation_disallowed;
mtx_init(&device->overallocation_mutex, mtx_plain);
- if (physical_device->rad_info.mid_command_buffer_preemption_enabled ||
+ if (physical_device->rad_info.register_shadowing_required ||
device->instance->debug_flags & RADV_DEBUG_SHADOW_REGS)
device->uses_shadow_regs = true;
void si_init_cp_reg_shadowing(struct si_context *sctx)
{
if (sctx->has_graphics &&
- (sctx->screen->info.mid_command_buffer_preemption_enabled ||
+ (sctx->screen->info.register_shadowing_required ||
sctx->screen->debug_flags & DBG(SHADOW_REGS))) {
if (sctx->screen->info.has_fw_based_shadowing) {
sctx->shadowing.registers =