wsl/libhsakmt: fix handling of HSA_OVERRIDE_GFX_VERSION option

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Horatio Zhang <Hongkun.Zhang@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/96>
This commit is contained in:
Flora Cui
2025-07-31 12:10:00 +08:00
کامیت شده توسط Frank Min
والد d520b11006
کامیت 15b8ce7529
+3 -4
مشاهده پرونده
@@ -587,11 +587,10 @@ static HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
props.OverrideEngineId.ui32.Major = major & 0x3f;
props.OverrideEngineId.ui32.Minor = minor & 0xff;
props.OverrideEngineId.ui32.Stepping = step & 0xff;
} else {
props.EngineId.ui32.Major = device->Major();
props.EngineId.ui32.Minor = device->Minor();
props.EngineId.ui32.Stepping = device->Stepping();
}
props.EngineId.ui32.Major = device->Major();
props.EngineId.ui32.Minor = device->Minor();
props.EngineId.ui32.Stepping = device->Stepping();
snprintf((char *)props.AMDName, sizeof(props.AMDName) - 1, "GFX%06x",
HSA_GET_GFX_VERSION_FULL(props.EngineId.ui32));