From d40300fab7b81a49b26b47e48bbf4f8d84495d47 Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 18 Aug 2014 14:48:32 -0400 Subject: [PATCH] P4 to Git Change 1067510 by skudchad@skudchad_test_win_opencl2 on 2014/08/18 14:36:22 ECR #304775 - Correct a typo where I didnt remove the offset from the condition which made the writeRect take pinning path. ReviewBoardURL = http://ocltc.amd.com/reviews/r/5566/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#330 edit --- rocclr/runtime/device/gpu/gpuvirtual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/runtime/device/gpu/gpuvirtual.cpp b/rocclr/runtime/device/gpu/gpuvirtual.cpp index 3ddeb86371..b436dcaf16 100644 --- a/rocclr/runtime/device/gpu/gpuvirtual.cpp +++ b/rocclr/runtime/device/gpu/gpuvirtual.cpp @@ -834,7 +834,7 @@ VirtualGPU::submitWriteMemory(amd::WriteMemoryCommand& vcmd) amd::Coord3D region(0); amd::Coord3D hostOrigin(vcmd.hostRect().start_+ offset); hostbufferRect.create(hostOrigin.c, vcmd.size().c , vcmd.hostRect().rowPitch_, vcmd.hostRect().slicePitch_); - if ((hostMemory != NULL) && (offset == 0)) { + if (hostMemory != NULL) { result = blitMgr().copyBufferRect(*hostMemory, *memory, hostbufferRect, vcmd.bufRect(), vcmd.size(), vcmd.isEntireMemory());