mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Related-To: NEO-4724 Change-Id: I85c2effea8a99bebaf9e3db33129641f37dcabe5 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
25 lines
739 B
C++
25 lines
739 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/helpers/heap_assigner.h"
|
|
#include "shared/test/unit_test/helpers/debug_manager_state_restore.h"
|
|
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
|
#include "test.h"
|
|
|
|
namespace NEO {
|
|
|
|
using AlocationHelperTests = Test<ClDeviceFixture>;
|
|
|
|
HWTEST_F(AlocationHelperTests, givenLinearStreamTypeWhenUseExternalAllocatorForSshAndDshDisabledThenUse32BitIsFalse) {
|
|
DebugManagerStateRestore dbgRestorer;
|
|
DebugManager.flags.UseExternalAllocatorForSshAndDsh.set(true);
|
|
HeapAssigner heapAssigner = {};
|
|
EXPECT_FALSE(heapAssigner.use32BitHeap(GraphicsAllocation::AllocationType::LINEAR_STREAM));
|
|
}
|
|
|
|
} // namespace NEO
|