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
This commit is contained in:
1 szülő
806aee7963
commit
9aca622a92
4 files changed
+5
-11
No files matched your search
@@ -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_;
|
||||
|
||||
Reference in new issue
Block a user