fix: for 32 bit addressing adjust correctly gpuAddress if CONSTANT_SURFACE

Related-To: HSD-16020995919
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-07-26 17:18:14 +00:00
committed by Compute-Runtime-Automation
parent 1195578d96
commit b529adf941
2 changed files with 23 additions and 4 deletions

View File

@@ -138,7 +138,9 @@ GraphicsAllocation *WddmMemoryManager::allocateMemoryByKMD(const AllocationData
allocationData.type, nullptr, 0, allocationData.size, nullptr,
MemoryPool::SystemCpuInaccessible, allocationData.flags.shareable, maxOsContextCount);
allocation->setDefaultGmm(gmm.get());
if (!createWddmAllocation(allocation.get(), nullptr)) {
void *requiredGpuVa = nullptr;
adjustGpuPtrToHostAddressSpace(*allocation.get(), requiredGpuVa);
if (!createWddmAllocation(allocation.get(), requiredGpuVa)) {
return nullptr;
}
@@ -1408,7 +1410,8 @@ bool WddmMemoryManager::isStatelessAccessRequired(AllocationType type) {
type == AllocationType::SHARED_BUFFER ||
type == AllocationType::SCRATCH_SURFACE ||
type == AllocationType::LINEAR_STREAM ||
type == AllocationType::PRIVATE_SURFACE) {
type == AllocationType::PRIVATE_SURFACE ||
type == AllocationType::CONSTANT_SURFACE) {
return true;
}
return false;