P4 to Git Change 1583633 by vsytchen@vsytchen-win10 on 2018/07/20 18:09:50

SWDEV-79445 - OCL generic changes and code clean-up

	1. Purge reduntant SVM alignment. The size will always get correctly aligned inside of PAL/GSL.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/15454/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#596 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#245 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#98 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#70 edit


[ROCm/clr commit: 9aca622a92]
Cette révision appartient à :
foreman
2018-07-20 19:34:45 -04:00
Parent e0b6689f17
révision 7e9a0bf90c
4 fichiers modifiés avec 5 ajouts et 11 suppressions
+3
Voir le fichier
@@ -415,6 +415,9 @@ bool Resource::create(MemoryType memType, CreateParams* params) {
//! @todo Remove alignment.
//! GSL asserts in mem copy with an unaligned size
cal_.width_ = amd::alignUp(cal_.width_, 64);
if ((desc.section == GSL_SECTION_SVM || desc.section == GSL_SECTION_SVM_ATOMICS)) {
cal_.width_ = amd::alignUp(cal_.width_, 64 * Ki / sizeof(uint32_t));
}
}
desc.dimension = cal()->dimension_;