mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
ac,radeonsi,radv: rename register_shadowing_required
rename register_shadowing_required to has_kernelq_reg_shadowing Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35106>
This commit is contained in:
parent
067d820c9d
commit
1000ee3d2f
5 changed files with 8 additions and 8 deletions
|
|
@ -1706,8 +1706,8 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
|||
}
|
||||
|
||||
/* WARNING: Register shadowing decreases performance by up to 50% on GFX11 with current FW. */
|
||||
info->register_shadowing_required = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION &&
|
||||
info->gfx_level < GFX11;
|
||||
info->has_kernelq_reg_shadowing = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION &&
|
||||
info->gfx_level < GFX11;
|
||||
|
||||
if (info->gfx_level >= GFX12) {
|
||||
info->has_set_context_pairs = true;
|
||||
|
|
@ -1715,7 +1715,7 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
|||
info->has_set_uconfig_pairs = true;
|
||||
} else if (info->gfx_level >= GFX11 && info->has_dedicated_vram) {
|
||||
info->has_set_context_pairs_packed = true;
|
||||
info->has_set_sh_pairs_packed = info->register_shadowing_required;
|
||||
info->has_set_sh_pairs_packed = info->has_kernelq_reg_shadowing;
|
||||
}
|
||||
|
||||
/* This is the size of all TCS outputs in memory per workgroup.
|
||||
|
|
@ -2073,7 +2073,7 @@ void ac_print_gpu_info(const struct radeon_info *info, FILE *f)
|
|||
fprintf(f, " has_stable_pstate = %u\n", info->has_stable_pstate);
|
||||
fprintf(f, " has_gang_submit = %u\n", info->has_gang_submit);
|
||||
fprintf(f, " has_gpuvm_fault_query = %u\n", info->has_gpuvm_fault_query);
|
||||
fprintf(f, " register_shadowing_required = %u\n", info->register_shadowing_required);
|
||||
fprintf(f, " has_kernelq_reg_shadowing = %u\n", info->has_kernelq_reg_shadowing);
|
||||
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",
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ struct radeon_info {
|
|||
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 register_shadowing_required;
|
||||
bool has_kernelq_reg_shadowing;
|
||||
bool has_default_zerovram_support;
|
||||
bool has_tmz_support;
|
||||
bool has_trap_handler_support;
|
||||
|
|
|
|||
|
|
@ -1206,7 +1206,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
device->overallocation_disallowed = overallocation_disallowed;
|
||||
mtx_init(&device->overallocation_mutex, mtx_plain);
|
||||
|
||||
if (pdev->info.register_shadowing_required || instance->debug_flags & RADV_DEBUG_SHADOW_REGS)
|
||||
if (pdev->info.has_kernelq_reg_shadowing || instance->debug_flags & RADV_DEBUG_SHADOW_REGS)
|
||||
device->uses_shadow_regs = true;
|
||||
|
||||
/* Create one context per queue priority. */
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
void si_init_cp_reg_shadowing(struct si_context *sctx)
|
||||
{
|
||||
if (sctx->has_graphics &&
|
||||
sctx->screen->info.register_shadowing_required) {
|
||||
sctx->screen->info.has_kernelq_reg_shadowing) {
|
||||
if (sctx->screen->info.has_fw_based_shadowing) {
|
||||
sctx->shadowing.registers =
|
||||
si_aligned_buffer_create(sctx->b.screen,
|
||||
|
|
|
|||
|
|
@ -1297,7 +1297,7 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
|
|||
|
||||
/* Using the environment variable doesn't enable PAIRS packets for simplicity. */
|
||||
if (sscreen->debug_flags & DBG(SHADOW_REGS))
|
||||
sscreen->info.register_shadowing_required = true;
|
||||
sscreen->info.has_kernelq_reg_shadowing = true;
|
||||
|
||||
bool support_aco = aco_is_gpu_supported(&sscreen->info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue