SWDEV-361730 - Fix to match the kernel arg allocation sizes between gpu visible mem and host/runtime mem
Change-Id: I6495aa57e97b46373c1d90cc230435780fdcf3ef
This commit is contained in:
1 parent
a5b550e828
commit
b2665ccc4b
2 files changed
+5
-3
No files matched your search
@@ -2964,7 +2964,8 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes,
|
||||
argBuffer = reinterpret_cast<address>(allocKernArg(gpuKernel.KernargSegmentByteSize(),
|
||||
gpuKernel.KernargSegmentAlignment()));
|
||||
// Load all kernel arguments
|
||||
memcpy(argBuffer, parameters, gpuKernel.KernargSegmentByteSize());
|
||||
memcpy(argBuffer, parameters, std::min(gpuKernel.KernargSegmentByteSize(),
|
||||
signature.paramsSize()));
|
||||
}
|
||||
|
||||
// Check for group memory overflow
|
||||
|
||||
Reference in new issue
Block a user