wsl/hsakmt: Fix conversion warnings by using 0 for Non-Pointers
This patch addresses several compiler warnings related to the use of NULL with non-pointer types, such as D3DKMT_HANDLE, uint64_t, and uint32_t. Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com> Reviewed-by: tiancyin <tianci.yin@amd.com> Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/16>
This commit is contained in:
gecommit door
Frank Min
bovenliggende
9f5bda00ca
commit
ce64cf0314
@@ -256,8 +256,8 @@ size_t CmdUtil::BuildDispatch(
|
||||
// This feature may be enabled as a side effect of indirect calls.
|
||||
// However, the compiler team confirmed that the dispatch id itself is not used,
|
||||
// so safe to send 0 for each dispatch.
|
||||
dispatch.compute_user_data_regs.compute_user_data[sgpr_no++] = NULL;
|
||||
dispatch.compute_user_data_regs.compute_user_data[sgpr_no++] = NULL;
|
||||
dispatch.compute_user_data_regs.compute_user_data[sgpr_no++] = 0;
|
||||
dispatch.compute_user_data_regs.compute_user_data[sgpr_no++] = 0;
|
||||
}
|
||||
if (AMD_HSA_BITS_GET(pInfo->pKernelObject->kernel_code_properties,
|
||||
AMD_KERNEL_CODE_PROPERTIES_ENABLE_SGPR_FLAT_SCRATCH_INIT)) {
|
||||
|
||||
Verwijs in nieuw issue
Block a user