P4 to Git Change 1187862 by gandryey@gera-w8 on 2015/09/03 17:32:31
EPR #426143 - [AVID] clEnqueueWriteImage with a row pitch different from 0 will fail if we use the pre-pinned path - pass pitch and slice to the copy functions Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#377 edit
This commit is contained in:
@@ -737,7 +737,8 @@ VirtualGPU::submitReadMemory(amd::ReadMemoryCommand& vcmd)
|
||||
amd::Coord3D dstOrigin(offset);
|
||||
result = blitMgr().copyImageToBuffer(*memory, *hostMemory,
|
||||
vcmd.origin(), dstOrigin, vcmd.size(),
|
||||
vcmd.isEntireMemory());
|
||||
vcmd.isEntireMemory(),
|
||||
vcmd.rowPitch(), vcmd.slicePitch());
|
||||
}
|
||||
else {
|
||||
result = blitMgr().readImage(*memory, vcmd.destination(),
|
||||
@@ -846,7 +847,8 @@ VirtualGPU::submitWriteMemory(amd::WriteMemoryCommand& vcmd)
|
||||
amd::Coord3D srcOrigin(offset);
|
||||
result = blitMgr().copyBufferToImage(*hostMemory, *memory,
|
||||
srcOrigin, vcmd.origin(), vcmd.size(),
|
||||
vcmd.isEntireMemory());
|
||||
vcmd.isEntireMemory(),
|
||||
vcmd.rowPitch(), vcmd.slicePitch());
|
||||
}
|
||||
else {
|
||||
result = blitMgr().writeImage(vcmd.source(), *memory,
|
||||
|
||||
Reference in New Issue
Block a user