Skip to content

Commit eefb2bb

Browse files
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 <[email protected]>
1 parent 7eb5db4 commit eefb2bb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

unit_tests/mem_obj/buffer_tests.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,16 @@ TEST_F(RenderCompressedBuffersTests, givenDebugVariableSetWhenHwFlagIsNotSetThen
561561
EXPECT_NE(buffer->getGraphicsAllocation()->getAllocationType(), GraphicsAllocation::AllocationType::BUFFER_COMPRESSED);
562562
}
563563

564-
TEST_F(RenderCompressedBuffersTests, givenSvmAllocationWhenCreatingBufferThenForceDisableCompression) {
564+
struct RenderCompressedBuffersSvmTests : public RenderCompressedBuffersTests {
565+
void SetUp() override {
566+
ExecutionEnvironment *executionEnvironment = platformImpl->peekExecutionEnvironment();
567+
hwInfo = executionEnvironment->getMutableHardwareInfo();
568+
hwInfo->capabilityTable.gpuAddressSpace = MemoryConstants::max48BitAddress;
569+
RenderCompressedBuffersTests::SetUp();
570+
}
571+
};
572+
573+
TEST_F(RenderCompressedBuffersSvmTests, givenSvmAllocationWhenCreatingBufferThenForceDisableCompression) {
565574
hwInfo->capabilityTable.ftrRenderCompressedBuffers = true;
566575

567576
auto svmPtr = context->getSVMAllocsManager()->createSVMAlloc(sizeof(uint32_t), {});

0 commit comments

Comments
 (0)