Fix to proper init gmm page table on linux

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2021-09-07 23:30:06 +00:00
committed by Compute-Runtime-Automation
parent bbfbf19a02
commit 5330c9cfd9
6 changed files with 29 additions and 2 deletions

View File

@@ -7,6 +7,8 @@
#include "shared/test/common/mocks/mock_gmm_client_context_base.h"
#include "gtest/gtest.h"
namespace NEO {
GMM_RESOURCE_INFO *MockGmmClientContextBase::createResInfoObject(GMM_RESCREATE_PARAMS *pCreateParams) {
@@ -33,4 +35,10 @@ uint8_t MockGmmClientContextBase::getMediaSurfaceStateCompressionFormat(GMM_RESO
return compressionFormatToReturn;
}
void MockGmmClientContextBase::setGmmDeviceInfo(GMM_DEVICE_INFO *deviceInfo) {
EXPECT_NE(deviceInfo, nullptr);
GMM_DEVICE_CALLBACKS_INT emptyStruct{};
EXPECT_EQ(0, memcmp(deviceInfo->pDeviceCb, &emptyStruct, sizeof(GMM_DEVICE_CALLBACKS_INT)));
}
} // namespace NEO