mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
b9a3f712ed
commit
a2c41e4749
@@ -18,6 +18,7 @@ set(NEO_SHARED_DLLS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/unified_memory_reuse_cleaner_enabled.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/create_command_stream.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/options_dll.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/get_staging_buffer_size.cpp
|
||||
)
|
||||
|
||||
add_library(neo_shared_dlls_precompiled_objects OBJECT ${NEO_SHARED_DLLS})
|
||||
|
||||
15
shared/source/dll/get_staging_buffer_size.cpp
Normal file
15
shared/source/dll/get_staging_buffer_size.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/utilities/staging_buffer_manager.h"
|
||||
|
||||
namespace NEO {
|
||||
size_t getDefaultStagingBufferSize() {
|
||||
return MemoryConstants::pageSize2M;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user