mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
test: Resolve clang-tidy dead store warning
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
85c8b6edcc
commit
aab1113632
@@ -7642,7 +7642,7 @@ TEST_F(DrmMemoryManagerWithLocalMemoryAndExplicitExpectationsTest, givenAllocati
|
|||||||
EXPECT_TRUE(allocation->getGpuAddress() % size == 0u);
|
EXPECT_TRUE(allocation->getGpuAddress() % size == 0u);
|
||||||
|
|
||||||
size = 8 * MemoryConstants::gigaByte + MemoryConstants::pageSize64k;
|
size = 8 * MemoryConstants::gigaByte + MemoryConstants::pageSize64k;
|
||||||
size_t expectedSize = size;
|
size_t expectedSize{};
|
||||||
|
|
||||||
if (productHelper.is2MBLocalMemAlignmentEnabled()) {
|
if (productHelper.is2MBLocalMemAlignmentEnabled()) {
|
||||||
expectedSize = alignUp(size, MemoryConstants::pageSize2M);
|
expectedSize = alignUp(size, MemoryConstants::pageSize2M);
|
||||||
|
|||||||
Reference in New Issue
Block a user