diff --git a/opencl/source/sharings/unified/windows/unified_image_windows.cpp b/opencl/source/sharings/unified/windows/unified_image_windows.cpp index b693468f0d..a262ab00e4 100644 --- a/opencl/source/sharings/unified/windows/unified_image_windows.cpp +++ b/opencl/source/sharings/unified/windows/unified_image_windows.cpp @@ -16,7 +16,7 @@ namespace NEO { void *UnifiedImage::swapGmm(GraphicsAllocation *graphicsAllocation, Context *context, ImageInfo *imgInfo) { - if (graphicsAllocation->getDefaultGmm()->gmmResourceInfo->peekGmmResourceInfo()->GetResourceType() == RESOURCE_BUFFER) { + if (graphicsAllocation->getDefaultGmm()->gmmResourceInfo->getResourceType() == RESOURCE_BUFFER) { auto gmmHelper = context->getDevice(0)->getRootDeviceEnvironment().getGmmHelper(); auto gmm = std::make_unique(gmmHelper, *imgInfo, StorageInfo{}, false); gmm->updateImgInfoAndDesc(*imgInfo, 0); diff --git a/opencl/test/unit_test/sharings/unified/unified_sharing_image_tests.cpp b/opencl/test/unit_test/sharings/unified/unified_sharing_image_tests.cpp index 981bb42591..704d24d342 100644 --- a/opencl/test/unit_test/sharings/unified/unified_sharing_image_tests.cpp +++ b/opencl/test/unit_test/sharings/unified/unified_sharing_image_tests.cpp @@ -111,6 +111,7 @@ struct MemoryManagerReturningCompressedAllocations : UnifiedSharingMockMemoryMan auto gmm = allocation->getDefaultGmm(); auto mockGmmResourceInfo = std::make_unique(gmm->gmmResourceInfo->peekGmmResourceInfo()); + mockGmmResourceInfo->mockResourceCreateParams.Type = RESOURCE_1D; mockGmmResourceInfo->setUnifiedAuxTranslationCapable(); gmm->gmmResourceInfo = std::move(mockGmmResourceInfo);