libhsakmt: Use node_id in topology_is_svm_needed()

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I7773ccb959e60e43b816477c5659f1fe835ecbbd
This commit is contained in:
Graham Sider
2021-07-16 16:19:02 -04:00
parent 2f261a8dab
commit bc4aca039c
5 changed files with 12 additions and 13 deletions
+2 -6
View File
@@ -798,16 +798,12 @@ void topology_setup_is_dgpu_param(HsaNodeProperties *props)
is_dgpu = true;
}
bool topology_is_svm_needed(uint16_t device_id)
bool topology_is_svm_needed(uint32_t node_id)
{
const struct hsa_gfxip_table *hsa_gfxip;
if (is_dgpu)
return true;
hsa_gfxip = find_hsa_gfxip_device(device_id);
if (hsa_gfxip && hsa_gfxip->asic_family >= CHIP_VEGA10)
if (get_gfxv_by_node_id(node_id) >= GFX_VERSION_VEGA10)
return true;
return false;