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:
committed by
German Andryeyev
orang tua
8cf53e7dff
melakukan
cd7034c9bb
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user