P4 to Git Change 1295077 by gandryey@gera-w8 on 2016/07/25 15:54:39
SWDEV-95007 - OpenCL on PAL (Windows) - Fix buffer rect copy when bytesPerElement>1 - Report the number of banks to avoid OCLtst failure Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#8 edit
This commit is contained in:
1 parent
cc7cddf745
commit
594dcef8a4
2 files changed
+2
-2
No files matched your search
@@ -1238,7 +1238,7 @@ Resource::partialMemCopyTo(
|
||||
copyRegion.srcBuffer.offset = calSrcOrigin[0] + offset();
|
||||
copyRegion.srcBuffer.rowPitch = calSrcOrigin[1];
|
||||
copyRegion.srcBuffer.depthPitch = calSrcOrigin[2];
|
||||
copyRegion.extent.width = calSize[0];
|
||||
copyRegion.extent.width = calSize[0] / bytesPerElement;
|
||||
copyRegion.extent.height = calSize[1];
|
||||
copyRegion.extent.depth = calSize[2];
|
||||
copyRegion.dstBuffer.format.chFmt = ChannelFmt(bytesPerElement);
|
||||
|
||||
Reference in new issue
Block a user