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]
Este commit está contenido en:
foreman
2014-09-11 18:10:22 -04:00
padre b0868e0475
commit e4a0212bbe
@@ -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;
}