SWDEV-370537 - PAL does 64kb alignment so no need to do it in runtime. Reverting alignment to 4kb.

Change-Id: If3eaac65bf63bb9b8b73a3cad1bb34d357f1adeb


[ROCm/clr commit: cd7034c9bb]
This commit is contained in:
Jaydeep Patel
2022-12-08 19:37:30 +00:00
کامیت شده توسط German Andryeyev
والد ebf7fad258
کامیت be5d6fb005
@@ -1078,8 +1078,7 @@ bool Resource::CreatePinned(CreateParams* params) {
// ================================================================================================
bool Resource::CreateSvm(CreateParams* params, Pal::gpusize svmPtr) {
const bool isFineGrain = (memoryType() == RemoteUSWC) || (memoryType() == Remote);
size_t allocSize = amd::alignUp(desc().width_ * elementSize_,
dev().properties().gpuMemoryProperties.fragmentSize);
size_t allocSize = amd::alignUp(desc().width_ * elementSize_, MaxGpuAlignment);
if (isFineGrain) {
Pal::SvmGpuMemoryCreateInfo createInfo = {};
createInfo.isUsedForKernel = desc_.isAllocExecute_;