P4 to Git Change 1321888 by gandryey@gera-w8 on 2016/10/03 15:55:50

SWDEV-79445 - OCL generic changes and code clean-up
	- Add the destinaiton buffer size to the LF transfer method

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#406 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#75 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#97 edit


[ROCm/clr commit: 638eae7a23]
这个提交包含在:
foreman
2016-10-03 16:00:17 -04:00
父节点 97e9a90a0d
当前提交 13e575d167
@@ -73,8 +73,9 @@ LiquidFlashFile::close()
bool
LiquidFlashFile::transferBlock(
bool writeBuffer,
void* srcDst,
bool writeBuffer,
void* srcDst,
uint64_t bufferSize,
uint64_t fileOffset,
uint64_t bufferOffset,
uint64_t size) const
@@ -85,10 +86,10 @@ LiquidFlashFile::transferBlock(
lf_region_descriptor region =
{ fileOffset / blockSize(), bufferOffset / blockSize(), size / blockSize() };
if (writeBuffer) {
status = lfReadFile(srcDst, size, (lf_file)handle_, 1, &region, NULL);
status = lfReadFile(srcDst, bufferSize, (lf_file)handle_, 1, &region, NULL);
}
else {
status = lfWriteFile(srcDst, size, (lf_file)handle_, 1, &region, NULL);
status = lfWriteFile(srcDst, bufferSize, (lf_file)handle_, 1, &region, NULL);
}
if (lf_success == status) {
return true;