P4 to Git Change 1569647 by gandryey@gera-lnx-rcf-lc on 2018/06/18 14:04:00

SWDEV-79445 - OCL generic changes and code clean-up
	 -Following CL#1568521. Correct LDS size look-up.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#57 edit
Этот коммит содержится в:
foreman
2018-06-18 14:15:59 -04:00
родитель e9aafc3e93
Коммит 1e1aa59aed
+5 -1
Просмотреть файл
@@ -1920,7 +1920,11 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, const
// Align the LDS on the alignment requirement of type pointed to
ldsUsage = amd::alignUp(ldsUsage, arg->pointeeAlignment_);
argPtr = addArg(argPtr, &ldsUsage, arg->size_, arg->alignment_);
ldsUsage += *reinterpret_cast<const size_t*>(srcArgPtr);
if (sizeof(uint64_t) == arg->size_) {
ldsUsage += *reinterpret_cast<const uint64_t*>(srcArgPtr);
} else {
ldsUsage += *reinterpret_cast<const uint32_t*>(srcArgPtr);
}
break;
}
assert((arg->addrQual_ == ROC_ADDRESS_GLOBAL || arg->addrQual_ == ROC_ADDRESS_CONSTANT) &&