mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-13 11:38:22 +02:00
radv/rra,rmv: fix device id written into trace files
Both RRA and RMV used the PCI bus slot index in the trace device_id field. On a typical single-GPU system, this resulted in "Device ID = 0000" displayed in RRA and RMV when traces were opened. Match RGP dump, which reports device ids correctly. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41788>
This commit is contained in:
parent
bec5d3fff5
commit
691371a176
2 changed files with 2 additions and 2 deletions
|
|
@ -426,7 +426,7 @@ radv_rmv_fill_device_info(const struct radv_physical_device *pdev, struct vk_rmv
|
|||
strncpy(info->device_name, gpu_info->marketing_name, sizeof(info->device_name) - 1);
|
||||
info->pcie_family_id = gpu_info->family_id;
|
||||
info->pcie_revision_id = gpu_info->pci_rev_id;
|
||||
info->pcie_device_id = gpu_info->pci.dev;
|
||||
info->pcie_device_id = gpu_info->pci_id;
|
||||
info->minimum_shader_clock = 0;
|
||||
info->maximum_shader_clock = gpu_info->max_gpu_freq_mhz;
|
||||
info->vram_type = memory_type_from_vram_type(gpu_info->vram_type);
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ rra_dump_asic_info(const struct radeon_info *gpu_info, FILE *output)
|
|||
.mem_ops_per_clk = ac_memory_ops_per_clock(gpu_info->vram_type),
|
||||
.bus_width = gpu_info->memory_bus_width,
|
||||
|
||||
.device_id = gpu_info->pci.dev,
|
||||
.device_id = gpu_info->pci_id,
|
||||
.rev_id = gpu_info->pci_rev_id,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue