mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
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:
committed by
sys_ocldev
parent
7eb5db4fc7
commit
eefb2bb488
@@ -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), {});
|
||||
|
||||
Reference in New Issue
Block a user