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

Change-Id: If3eaac65bf63bb9b8b73a3cad1bb34d357f1adeb
This commit is contained in:
Jaydeep Patel
2022-12-08 19:37:30 +00:00
committed by German Andryeyev
orang tua 8cf53e7dff
melakukan cd7034c9bb
+1 -2
Melihat File
@@ -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_;