Skip to content

Commit

Permalink
Have info tool expose SubSysId during GPU enumeration (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
rurra-amd authored Oct 28, 2024
1 parent 3f56c47 commit 23dbad8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/info/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
** Copyright (c) 2020-2024 LunarG, Inc.
** Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All rights reserved.
** Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -694,7 +694,7 @@ static bool CheckOptionEnumGpuIndices(const char* exe_name, const gfxrecon::util
gfxrecon::graphics::dx12::ActiveAdapterMap adapters{};
gfxrecon::graphics::dx12::TrackAdapters(result, reinterpret_cast<void**>(&factory1), adapters);

GFXRECON_WRITE_CONSOLE("GPU index\tGPU name");
GFXRECON_WRITE_CONSOLE("GPU index\tGPU name\tSubSys ID");
for (size_t index = 0; index < adapters.size(); ++index)
{
for (auto adapter : adapters)
Expand All @@ -704,7 +704,10 @@ static bool CheckOptionEnumGpuIndices(const char* exe_name, const gfxrecon::util
std::string replay_adapter_str =
gfxrecon::util::WCharArrayToString(adapter.second.internal_desc.Description);

GFXRECON_WRITE_CONSOLE("%-9x\t%s", adapter.second.adapter_idx, replay_adapter_str.c_str());
GFXRECON_WRITE_CONSOLE("%-9x\t%s\t%u",
adapter.second.adapter_idx,
replay_adapter_str.c_str(),
adapter.second.internal_desc.SubSysId);
adapter.second.adapter->Release();
break;
}
Expand Down

0 comments on commit 23dbad8

Please sign in to comment.