fix: add mock for staging buffer size

No need to allocate 2MB in unit tests.
This commit changes this size to 4KB.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-05-21 15:02:22 +00:00
committed by Compute-Runtime-Automation
parent b9a3f712ed
commit a2c41e4749
14 changed files with 83 additions and 42 deletions

View File

@@ -2413,7 +2413,7 @@ struct StagingBufferTest : public EnqueueSvmTest {
EnqueueSvmTest::TearDown();
}
static constexpr size_t stagingBufferSize = MemoryConstants::megaByte * 2;
static constexpr size_t stagingBufferSize = MemoryConstants::pageSize;
static constexpr size_t copySize = stagingBufferSize * 4;
static constexpr size_t expectedNumOfCopies = copySize / stagingBufferSize;