P4 to Git Change 1076147 by rili@rili_opencl_stg on 2014/09/11 17:44:11

EPR #405753 - Fixed incorrect value of slicePitch returned from clEnqueueMapimage for 1Darray.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#111 edit


[ROCm/clr commit: edb288692d]
이 커밋은 다음에 포함됨:
foreman
2014-09-11 18:10:22 -04:00
부모 b0868e0475
커밋 e4a0212bbe
+6 -2
파일 보기
@@ -1355,8 +1355,12 @@ Image::allocMapTarget(
// Update the row and slice pitches value
*rowPitch = region[0] * elementSize();
slicePitchTmp = *rowPitch * region[1];
if (cal()->dimension_ == GSL_MOA_TEXTURE_1D_ARRAY) {
slicePitchTmp = *rowPitch ;
}
else {
slicePitchTmp = *rowPitch * region[1];
}
// Use start of the indirect buffer
offset = 0;
}