P4 to Git Change 1058342 by jatang@jatang-ocl-lnx3 on 2014/07/23 11:50:50

EPR #402935 - Reset Resource::pinOffset_ if gslResource couldn't be created for pinned memory.

	When the pinned memory to be created is too large, gslResource couldn't be created, and a local memory will be created instead. If pinOffset_ is NOT reset in this case, it will mess up future copying of the local memory.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#187 edit
이 커밋은 다음에 포함됨:
foreman가 2014-07-23 12:19:19 -04:00를 커밋했습니다
1 부모 5b7c1dd22c
커밋 1e0a5f64f5
1 파일이 변경됨
+3
+3
파일 보기
@@ -577,6 +577,9 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
if (gslResource != 0) {
calRes = true;
}
else {
pinOffset_ = 0;
}
}
break;
case View: {