mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: set properly resource params when setAllocationType
gmm params: usage, cachable and resource info should be set properly when override allocation type Resolves: HSD-22020344331 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
71c6731287
commit
2e0884a301
@@ -476,7 +476,7 @@ Buffer *Buffer::create(Context *context,
|
||||
allocationInfo.allocationType = AllocationType::bufferHostMemory;
|
||||
}
|
||||
|
||||
allocationInfo.memory->setAllocationType(allocationInfo.allocationType);
|
||||
allocationInfo.memory->setAllocationType(allocationInfo.allocationType, defaultDevice->getProductHelper());
|
||||
auto isWritable = !(memoryProperties.flags.readOnly || memoryProperties.flags.hostReadOnly || memoryProperties.flags.hostNoAccess);
|
||||
allocationInfo.memory->setMemObjectsAllocationWithWritableFlags(isWritable);
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ Image *Image::create(Context *context,
|
||||
}
|
||||
|
||||
if (parentBuffer == nullptr) {
|
||||
allocationInfo.memory->setAllocationType(AllocationType::image);
|
||||
allocationInfo.memory->setAllocationType(AllocationType::image, defaultDevice->getProductHelper());
|
||||
}
|
||||
|
||||
if (parentImage) {
|
||||
|
||||
Reference in New Issue
Block a user