wsl/hsakmt: move amd_queue_rocr_ above aql_to_pm4_thread_

to avoid segfault

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Longlong Yao <Longlong.Yao@amd.com>
Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/28>
这个提交包含在:
Flora Cui 编写, Frank Min 于 2025-11-05 18:53:35 +08:00 提交
1 父节点 a2b449a370
当前提交 55fc454b9d
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -269,8 +269,8 @@ ComputeQueue::ComputeQueue(WDDMDevice *device,
amd_queue_mem_ = gpu_mem->GetGpuMemoryHandle();
amd_queue_ = reinterpret_cast<amd_queue_t*>(gpu_mem->GpuAddress());
aql_to_pm4_thread_ = std::thread(AqlToPm4Thread, this);
amd_queue_rocr_ = (amd_queue_t*)((char*)ring_rptr - offsetof(amd_queue_t, read_dispatch_id));
aql_to_pm4_thread_ = std::thread(AqlToPm4Thread, this);
}
ComputeQueue::~ComputeQueue() {