SVM buffer tests: setup hwInfo with 48 bit gpu address space

- to use SVM, proper GPU address space is needed

Change-Id: I01f217fd4af958fd6c1e306d4d9146253163eb0e
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
This commit is contained in:
Hoppe, Mateusz
2019-05-09 12:35:24 +02:00
committed by sys_ocldev
parent 7eb5db4fc7
commit eefb2bb488

View File

@@ -561,7 +561,16 @@ TEST_F(RenderCompressedBuffersTests, givenDebugVariableSetWhenHwFlagIsNotSetThen
EXPECT_NE(buffer->getGraphicsAllocation()->getAllocationType(), GraphicsAllocation::AllocationType::BUFFER_COMPRESSED);
}
TEST_F(RenderCompressedBuffersTests, givenSvmAllocationWhenCreatingBufferThenForceDisableCompression) {
struct RenderCompressedBuffersSvmTests : public RenderCompressedBuffersTests {
void SetUp() override {
ExecutionEnvironment *executionEnvironment = platformImpl->peekExecutionEnvironment();
hwInfo = executionEnvironment->getMutableHardwareInfo();
hwInfo->capabilityTable.gpuAddressSpace = MemoryConstants::max48BitAddress;
RenderCompressedBuffersTests::SetUp();
}
};
TEST_F(RenderCompressedBuffersSvmTests, givenSvmAllocationWhenCreatingBufferThenForceDisableCompression) {
hwInfo->capabilityTable.ftrRenderCompressedBuffers = true;
auto svmPtr = context->getSVMAllocsManager()->createSVMAlloc(sizeof(uint32_t), {});