Fix setting of SVM pointer argument
@@ -799,7 +799,7 @@ bool Level0Queue::setupKernelArgs(ze_module_handle_t ModuleH,
if (PoclArg[i].value == NULL) {
Res = zeKernelSetArgumentValue(KernelH, i, sizeof(void *), nullptr);
} else if (PoclArg[i].is_svm != 0) {
- void *MemPtr = PoclArg[i].value;
+ void *MemPtr = *(void**)PoclArg[i].value;
Res = zeKernelSetArgumentValue(KernelH, i, sizeof(void *), &MemPtr);
} else {
cl_mem arg_buf = (*(cl_mem *)(PoclArg[i].value));
