libhsakmt: add OverrideEngineId property

When HSA_OVERRIDE_GFX_VERSION is used, save the overrided GFX
version to OverrideEngineId instead of original EngineId. There
are places where real GFX properties still needed, e.g. CWSR size
calculation.

Change-Id: I9d9149bae465b7cfe55604fc19e7ca34e48b7b1c
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
此提交包含在:
Yifan Zhang authored and David Yat Sin committed 2024-08-20 09:10:52 -04:00
1 父節點 123b2c080a
當前提交 3f1f68c8cb
3 file changed
+30 -11

No files matched your search

+1
查看文件
@@ -298,6 +298,7 @@ typedef struct _HsaNodeProperties
// may be 0 if HW has no restrictions
HSA_ENGINE_ID EngineId; // Identifier (rev) of the GPU uEngine or Firmware, may be 0
HSA_ENGINE_ID OverrideEngineId; // Identifier (rev) of the Overrided GPU uEngine or Firmware, may be 0
HSAuint16 VendorId; // GPU vendor id; 0 on latency (= CPU)-only nodes
HSAuint16 DeviceId; // GPU device id; 0 on latency (= CPU)-only nodes