mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
fix: get gmm resource type using ResourceInfo interface
GMM_RESOURCE_INFO interface should be used only within ResourceInfo class Related-To: NEO-7951 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c4f36a6808
commit
b1543289d2
@@ -111,6 +111,7 @@ struct MemoryManagerReturningCompressedAllocations : UnifiedSharingMockMemoryMan
|
||||
|
||||
auto gmm = allocation->getDefaultGmm();
|
||||
auto mockGmmResourceInfo = std::make_unique<MockGmmResourceInfo>(gmm->gmmResourceInfo->peekGmmResourceInfo());
|
||||
mockGmmResourceInfo->mockResourceCreateParams.Type = RESOURCE_1D;
|
||||
mockGmmResourceInfo->setUnifiedAuxTranslationCapable();
|
||||
gmm->gmmResourceInfo = std::move(mockGmmResourceInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user